|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
uk.org.iscream.cms.conient.datacomponents.VisibleDataComponent
uk.org.iscream.cms.conient.datacomponents.UsersDataComponent
This component displays the users currently logged onto a system. Currently it does this simply by putting them all in a JCombobox.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private String |
_attribute
The attribute that this component is concerned with |
(package private) String |
_cache
Remebers what the last value was, so we only update if we have to. |
protected JComboBox |
_item
Just a JComboBox to display the users in |
protected JLabel |
_label
The friendly label for this component |
private String |
_name
The friendly name of this component |
Fields inherited from class uk.org.iscream.cms.conient.datacomponents.VisibleDataComponent |
REVISION |
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
UsersDataComponent(String name,
String attribute)
Creates the component with a friendly name to be used as label, but as we're a very basic extension of StringDataComponent, we just construct that. |
Method Summary | |
String |
getPacketAttribute()
Returns the string showing the packet attribute that the component is looking after |
void |
run()
This run method updates any Swing components The setValue() method adds this component to the Swing Event Dispatching Queue to run this method. |
void |
setValue(XMLPacket packet)
This takes the packet to obtain the value from, it then performs all approriate conversions and adds this class to the Swing Event Dispatching queue. |
String |
toString()
Overrides the Object.toString()
method to provide clean logging (every class should have this). |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String _name
private String _attribute
String _cache
protected JLabel _label
protected JComboBox _item
Constructor Detail |
public UsersDataComponent(String name, String attribute)
name
- the friendly nameattribute
- the data attribute we look afterMethod Detail |
public void run()
public String toString()
Object.toString()
method to provide clean logging (every class should have this).
public void setValue(XMLPacket packet) throws DataFormatException
packet
- the XMLPacket to get the data from
DataFormatException
- if there was a problem converting the data for displaypublic String getPacketAttribute()
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |