|
|||||||||||
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
wt.clients.csm.widgets.InlineDiscreteValueEditorWidget
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 boolean |
btnNotEnabled
|
private static String |
CLASSNAME
|
private AttributeDefDefaultView |
definition
|
private boolean |
dirty
|
private boolean |
enabled
|
private ImageIcon |
inRange
|
private String |
measurementSystem
|
private EnhancedDiscreteQFValue |
obj
|
private ImageIcon |
outRange
|
private ValueEditorListenerInterface |
parent
|
private static String |
RESOURCE
|
private JToggleButton |
tbNot
|
private static String |
versionID
|
private InlineValueEditorWidgetInterface |
widget
|
protected static String |
WIDGETS_RESOURCE
|
protected ResourceBundle |
widgetsResource
|
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 | |
InlineDiscreteValueEditorWidget()
|
|
InlineDiscreteValueEditorWidget(AttributeDefDefaultView definition)
|
|
InlineDiscreteValueEditorWidget(AttributeDefDefaultView definition,
InlineValueEditorWidgetInterface widget)
|
Method Summary | |
void |
addKeyListener(KeyListener listener)
Add the key listener to the JComponent inside the widget. |
InlineDiscreteValueEditorWidget |
createNewWidget()
Create a new widget will the same type as itself. |
protected void |
displayExceptionMessage(String key,
Object[] params)
|
AttributeDefDefaultView |
getAttributeDefinition()
Return the Attribute Definition. |
boolean |
getBtnNotEnabled()
|
EnhancedDiscreteQFValue[] |
getNewValues()
Get the new values. |
EnhancedDiscreteQFValue |
getShownValue()
Get the currently shown value from the widget. |
void |
initComponents()
|
protected void |
initResource()
|
boolean |
isDirty()
Return whether the widget has changed or not. |
boolean |
isWidgetEnabled()
Return whether the widget is enabled or not. |
void |
removeKeyListener(KeyListener listener)
Remove the KeyListener from the JComponent inside the widget. |
void |
removeShownValue()
Remove the shown value. |
void |
setAttributeDefinition(AttributeDefDefaultView definition)
Set the Attribute Definition. |
void |
setBtnNotEnabled(boolean b)
|
void |
setMeasurementSystem(String measurementSystem)
|
void |
setMultiLineToolTip(String tooltip)
Set the tooltip text to the JComponent inside the widget. |
void |
setParent(ValueEditorListenerInterface parent)
|
void |
setShownValue(EnhancedDiscreteQFValue obj)
Set the AbstractValueView to be displayed in the widget. |
void |
setWidgetEnabled(boolean enabled)
Change the widget state from enabled to disabled. |
void |
valueChanged()
Callback function. |
void |
valueShown(AttributeDefDefaultView definition,
AbstractValueView obj)
Callback function. |
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 static final String RESOURCE
private static final String CLASSNAME
private static final String versionID
private ValueEditorListenerInterface parent
private InlineValueEditorWidgetInterface widget
private boolean enabled
private EnhancedDiscreteQFValue obj
private boolean dirty
private AttributeDefDefaultView definition
private String measurementSystem
protected static final String WIDGETS_RESOURCE
protected ResourceBundle widgetsResource
private JToggleButton tbNot
private ImageIcon inRange
private ImageIcon outRange
private boolean btnNotEnabled
Constructor Detail |
public InlineDiscreteValueEditorWidget()
public InlineDiscreteValueEditorWidget(AttributeDefDefaultView definition)
definition
- public InlineDiscreteValueEditorWidget(AttributeDefDefaultView definition, InlineValueEditorWidgetInterface widget)
Method Detail |
protected void initResource()
public void initComponents()
public void setParent(ValueEditorListenerInterface parent)
parent
- public EnhancedDiscreteQFValue getShownValue() throws ActionAbortedException
ActionAbortedException
public EnhancedDiscreteQFValue[] getNewValues() throws ActionAbortedException
ActionAbortedException
public void setShownValue(EnhancedDiscreteQFValue obj) throws ActionAbortedException
obj
-
ActionAbortedException
public void removeShownValue()
public void setWidgetEnabled(boolean enabled)
enabled
- public boolean isWidgetEnabled()
public InlineDiscreteValueEditorWidget createNewWidget()
public void setMultiLineToolTip(String tooltip)
tooltip
- public void addKeyListener(KeyListener listener)
listener
- public void removeKeyListener(KeyListener listener)
listener
- public boolean isDirty()
public void setAttributeDefinition(AttributeDefDefaultView definition)
definition
- public AttributeDefDefaultView getAttributeDefinition()
public void valueChanged()
valueChanged
in interface ValueEditorListenerInterface
public void valueShown(AttributeDefDefaultView definition, AbstractValueView obj)
valueShown
in interface ValueEditorListenerInterface
definition
- obj
- public void setMeasurementSystem(String measurementSystem)
setMeasurementSystem
in interface MeasurementSystemChangeListener
measurementSystem
- public void setBtnNotEnabled(boolean b)
public boolean getBtnNotEnabled()
protected void displayExceptionMessage(String key, Object[] params)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |