org.rosuda.ibase.toolkit
Class WTentry

java.lang.Object
  extended by org.rosuda.ibase.toolkit.WTentry
Direct Known Subclasses:
WTentryAWT, WTentrySwing

public abstract class WTentry
extends java.lang.Object

a WinTracker entry

Version:
$Id: WTentry.java 1908 2006-01-17 10:45:57Z wichtreyt $

Field Summary
 int id
           
static int lid
           
 java.lang.String name
           
 SVar v
           
 java.awt.Window w
           
 int wclass
           
static java.lang.String windowMenuName
           
 
Constructor Summary
WTentry(WinTracker wt, java.awt.Window win, java.lang.String nam, int wndclass)
           
 
Method Summary
abstract  void addMenuItem(java.lang.String name, java.lang.String action)
           
abstract  void addMenuSeparator()
           
 java.lang.String addWindowMenuEntry(WTentry we)
          adds the entry for this object into a menu of another window specified by its entry.
abstract  java.lang.Object getMenuItemByAction(java.lang.String action)
           
abstract  java.lang.Object getWindowMenu()
           
abstract  void rmMenuItemByAction(java.lang.String action)
           
 void rmWindowMenuEntry(WTentry we)
           
abstract  void setNameByAction(java.lang.String action, java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lid

public static int lid

windowMenuName

public static java.lang.String windowMenuName

w

public java.awt.Window w

name

public java.lang.String name

id

public int id

wclass

public int wclass

v

public SVar v
Constructor Detail

WTentry

public WTentry(WinTracker wt,
               java.awt.Window win,
               java.lang.String nam,
               int wndclass)
Method Detail

getWindowMenu

public abstract java.lang.Object getWindowMenu()

addMenuSeparator

public abstract void addMenuSeparator()

addMenuItem

public abstract void addMenuItem(java.lang.String name,
                                 java.lang.String action)

rmMenuItemByAction

public abstract void rmMenuItemByAction(java.lang.String action)

getMenuItemByAction

public abstract java.lang.Object getMenuItemByAction(java.lang.String action)

setNameByAction

public abstract void setNameByAction(java.lang.String action,
                                     java.lang.String name)

addWindowMenuEntry

public java.lang.String addWindowMenuEntry(WTentry we)
adds the entry for this object into a menu of another window specified by its entry.

Parameters:
we - the target window entry; if null then uses itself

rmWindowMenuEntry

public void rmWindowMenuEntry(WTentry we)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object