wt.clients.beans.query
Class WTAttribute

java.lang.Object
  extended bywt.clients.beans.query.WTAttribute
All Implemented Interfaces:
ActionListener, EventListener, ItemListener, KeyListener, WTQueryListener

public class WTAttribute
extends Object
implements ItemListener, ActionListener, WTQueryListener, KeyListener


Nested Class Summary
(package private)  class WTAttribute.WorkThread
          The work thread for this Applet.
 
Field Summary
static String BETWEEN
           
private static String BROWSE_CABINET
           
private static String BROWSE_CONTAINER
           
private static String BROWSE_PRINCIPAL
           
private static String BrowseCMD
           
private static String EMPTY_STRING
           
private static boolean enableGroups
           
static String EQUAL
           
static String GREATER
           
static String LESS
           
private  Color myBG
           
private  Color myCanvasBG
           
private  Color myCanvasFG
           
private  Choice myCombo
           
private  Label myDash
           
private  Color myFG
           
private  TextField myFrom
           
private  int myIndex
           
private  Label myLabel
           
private  Checkbox myNot
           
private  WTObject myObject
           
private  Panel myPanel
           
private  PropertyDescriptor myPD
           
private  Choice myRange
           
private  Button myRB
           
private  WTChooser myRQ
           
private  TextField myText
           
private  TextField myThru
           
private  Vector myValueSet
           
protected static int PROCESS_BROWSE_CABINET
           
protected static int PROCESS_BROWSE_CONTAINER
           
protected static int PROCESS_BROWSE_PRINCIPAL
           
private static String[] relationalConstraints
           
private  ThreadGroup theThreadGroup
           
private static String[] timeConstraints
           
private  boolean useProjects
           
private static String versionID
           
 
Constructor Summary
WTAttribute(PropertyDescriptor aPD, boolean aEditable)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
private  Button addButton(String a_label, String a_name)
           
 void clear()
           
 boolean equals(String aValue)
           
 String getAttributeName()
           
 String getAttributeQueryName()
           
 Color getBackground()
           
 Color getCanvasBackground()
           
 Color getCanvasForeground()
           
 Label getDashComp()
           
 EnumeratedType getEnumValue()
           
 Component getFieldComp()
           
 Color getForeground()
           
 String getFrom()
           
 TextField getFromComp()
           
 Label getLabelComp()
           
 String getName()
           
 boolean getNot()
           
 Checkbox getNotComp()
           
 Panel getPanelComp()
           
 String getRange()
           
 Choice getRangeComp()
           
 Button getRefBComp()
           
private  String[] getRelationalConstraints()
           
 Object getSelectedDetail()
           
 int getSize()
           
 String getThru()
           
 TextField getThruComp()
           
private  String[] getTimeConstraints()
           
private  Frame getTopLevelParent(Component component)
           
 Class getType()
           
 boolean getUseProjects()
          This method is to get whether to show projects or not

Supported API: false
 String getValue()
           
 Vector getValueSet()
           
 boolean isEditable()
           
 boolean isEnumType()
           
 boolean isEnumVSType()
           
 boolean isFull()
           
static boolean isLike(String s)
           
 boolean isNull()
           
 boolean isRangeType()
           
 boolean isReferenceType()
           
 void itemStateChanged(ItemEvent e)
           
 void keyPressed(KeyEvent e)
           
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
 String likeClaus()
           
static String likeClaus(String value)
           
private  void processBrowseCabinet()
           
private  void processBrowseContainer()
           
private  void processBrowsePrincipal()
           
private  void processBrowsePrincipal(boolean enableGroups)
           
 void queryEvent(WTQueryEvent e)
          Invoked when a button is clicked, a status message is ready or the selection has been changed in the results viewing area.
 void refresh()
           
 void setBackground(Color aColor)
           
 void setCanvasBackground(Color aColor)
           
 void setCanvasForeground(Color aColor)
           
 void setEditable(boolean aValue)
           
 void setForeground(Color aColor)
           
 void setFrom(String aValue)
           
 void setNot(boolean aValue)
           
 void setRange(String aValue)
           
 void setThru(String aValue)
           
 void setUseProjects(boolean projects)
          This method is to set projects on

Supported API: false
 void setValue(String aValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

BrowseCMD

private static final String BrowseCMD
See Also:
Constant Field Values

BROWSE_CABINET

private static final String BROWSE_CABINET
See Also:
Constant Field Values

BROWSE_PRINCIPAL

private static final String BROWSE_PRINCIPAL
See Also:
Constant Field Values

BROWSE_CONTAINER

private static final String BROWSE_CONTAINER
See Also:
Constant Field Values

PROCESS_BROWSE_CABINET

protected static final int PROCESS_BROWSE_CABINET
See Also:
Constant Field Values

PROCESS_BROWSE_CONTAINER

protected static final int PROCESS_BROWSE_CONTAINER
See Also:
Constant Field Values

PROCESS_BROWSE_PRINCIPAL

protected static final int PROCESS_BROWSE_PRINCIPAL
See Also:
Constant Field Values

EMPTY_STRING

private static final String EMPTY_STRING
See Also:
Constant Field Values

EQUAL

public static final String EQUAL
See Also:
Constant Field Values

LESS

public static final String LESS
See Also:
Constant Field Values

GREATER

public static final String GREATER
See Also:
Constant Field Values

BETWEEN

public static final String BETWEEN
See Also:
Constant Field Values

enableGroups

private static boolean enableGroups

relationalConstraints

private static String[] relationalConstraints

timeConstraints

private static String[] timeConstraints

myPD

private PropertyDescriptor myPD

myIndex

private int myIndex

myValueSet

private Vector myValueSet

theThreadGroup

private ThreadGroup theThreadGroup

myPanel

private Panel myPanel

myLabel

private Label myLabel

myText

private TextField myText

myCombo

private Choice myCombo

myRange

private Choice myRange

myFrom

private TextField myFrom

myDash

private Label myDash

myThru

private TextField myThru

myNot

private Checkbox myNot

myRB

private Button myRB

myRQ

private WTChooser myRQ

myObject

private WTObject myObject

myBG

private Color myBG

myFG

private Color myFG

myCanvasBG

private Color myCanvasBG

myCanvasFG

private Color myCanvasFG

useProjects

private boolean useProjects
Constructor Detail

WTAttribute

public WTAttribute(PropertyDescriptor aPD,
                   boolean aEditable)
Method Detail

getRelationalConstraints

private String[] getRelationalConstraints()

getTimeConstraints

private String[] getTimeConstraints()

addButton

private Button addButton(String a_label,
                         String a_name)

getLabelComp

public Label getLabelComp()

getPanelComp

public Panel getPanelComp()

getRangeComp

public Choice getRangeComp()

getFromComp

public TextField getFromComp()

getDashComp

public Label getDashComp()

getThruComp

public TextField getThruComp()

getNotComp

public Checkbox getNotComp()

getRefBComp

public Button getRefBComp()

getFieldComp

public Component getFieldComp()

getForeground

public Color getForeground()

setForeground

public void setForeground(Color aColor)

getBackground

public Color getBackground()

setBackground

public void setBackground(Color aColor)

getCanvasForeground

public Color getCanvasForeground()

setCanvasForeground

public void setCanvasForeground(Color aColor)

getCanvasBackground

public Color getCanvasBackground()

setCanvasBackground

public void setCanvasBackground(Color aColor)

refresh

public void refresh()

getAttributeName

public String getAttributeName()

getAttributeQueryName

public String getAttributeQueryName()

getName

public String getName()

getType

public Class getType()

isEnumType

public boolean isEnumType()

isEnumVSType

public boolean isEnumVSType()

isRangeType

public boolean isRangeType()

isReferenceType

public boolean isReferenceType()

getSize

public int getSize()

getValueSet

public Vector getValueSet()

setEditable

public void setEditable(boolean aValue)

isEditable

public boolean isEditable()

getValue

public String getValue()

setValue

public void setValue(String aValue)

getEnumValue

public EnumeratedType getEnumValue()

getSelectedDetail

public Object getSelectedDetail()

clear

public void clear()

getRange

public String getRange()

setRange

public void setRange(String aValue)

getFrom

public String getFrom()

setFrom

public void setFrom(String aValue)

getThru

public String getThru()

setThru

public void setThru(String aValue)

getNot

public boolean getNot()

setNot

public void setNot(boolean aValue)

equals

public boolean equals(String aValue)

isNull

public boolean isNull()

isFull

public boolean isFull()

isLike

public static boolean isLike(String s)

likeClaus

public static String likeClaus(String value)

likeClaus

public String likeClaus()

itemStateChanged

public void itemStateChanged(ItemEvent e)
Specified by:
itemStateChanged in interface ItemListener

processBrowseCabinet

private void processBrowseCabinet()

processBrowsePrincipal

private void processBrowsePrincipal()

processBrowseContainer

private void processBrowseContainer()

processBrowsePrincipal

private void processBrowsePrincipal(boolean enableGroups)

keyPressed

public void keyPressed(KeyEvent e)
Specified by:
keyPressed in interface KeyListener

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

getTopLevelParent

private Frame getTopLevelParent(Component component)

queryEvent

public void queryEvent(WTQueryEvent e)
Description copied from interface: WTQueryListener
Invoked when a button is clicked, a status message is ready or the selection has been changed in the results viewing area.

Supported API: true

Specified by:
queryEvent in interface WTQueryListener

setUseProjects

public void setUseProjects(boolean projects)
This method is to set projects on

Supported API: false


getUseProjects

public boolean getUseProjects()
This method is to get whether to show projects or not

Supported API: false