|
|||||||||||
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.iba.widgets.InlineReferenceValueEditorWidget
This inline value editor widget is specific only for ReferenceValueDefaultView object. The definition type should be ReferenceDefView. It consists of one textfield and a button to launch the WTChooser selector.
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 JButton |
btnFind
|
private static String |
CLASSNAME
|
private static boolean |
debug
|
private ReferenceDefView |
definition
|
private boolean |
dirty
|
private boolean |
enabled
|
private Vector |
foundValues
|
private ValueEditorListenerInterface |
parentReference
|
private static String |
RESOURCE
|
private String |
tooltip
|
private JTextField |
txtValue
|
private ReferenceValueDefaultView |
value
|
private static String |
versionID
|
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 | |
InlineReferenceValueEditorWidget()
Create the widget will no parameters. |
|
InlineReferenceValueEditorWidget(ReferenceDefView definition)
Create the widget with the parameter DefinitionDefDefaultView. |
|
InlineReferenceValueEditorWidget(ValueEditorListenerInterface parent,
ReferenceDefView definition)
Create the widget with the parameter DefinitionDefDefaultView. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
|
void |
addKeyListener(KeyListener listener)
Add the key listener to the JComponent inside the widget. |
InlineValueEditorWidgetInterface |
createNewWidget()
Create a new widget will the same type as itself. |
protected void |
displayExceptionMessage(String key,
Object[] params)
|
AttributeDefDefaultView |
getAttributeDefinition()
Return the Attribute Definition. |
protected Vector |
getFoundValues()
Gets the value of the attribute: foundValues. |
AbstractValueView[] |
getNewValues()
Get the new values. |
ValueEditorListenerInterface |
getParentReference()
|
AbstractValueView |
getShownValue()
Get the currently shown value from the widget. |
String |
getToolTipText()
|
protected ReferenceValueDefaultView |
getValue()
Gets the value of the attribute: value. |
protected void |
initResource()
Initialize resource bundle for internationalization and localization. |
void |
inlineButtonAction()
|
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 |
setDirty(boolean dirty)
|
protected void |
setFoundValues(Vector a_FoundValues)
Sets the value of the attribute: foundValues. |
void |
setMultiLineToolTip(String tooltip)
Set the tooltip text to the JComponent inside the widget. |
void |
setParentReference(ValueEditorListenerInterface parent)
|
void |
setShownValue(AbstractValueView obj)
Set the AbstractValueView to be displayed in the widget. |
protected void |
setValue(ReferenceValueDefaultView a_Value)
Sets the value of the attribute: value. |
void |
setWidgetEnabled(boolean enabled)
Change the widget state from enabled to disabled. |
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 JTextField txtValue
private JButton btnFind
private ValueEditorListenerInterface parentReference
private boolean enabled
private ReferenceValueDefaultView value
private boolean dirty
private Vector foundValues
private ReferenceDefView definition
private String tooltip
protected static final String WIDGETS_RESOURCE
private static final boolean debug
protected ResourceBundle widgetsResource
Constructor Detail |
public InlineReferenceValueEditorWidget()
public InlineReferenceValueEditorWidget(ReferenceDefView definition)
definition
- public InlineReferenceValueEditorWidget(ValueEditorListenerInterface parent, ReferenceDefView definition)
parent
- definition
- Method Detail |
protected ReferenceValueDefaultView getValue()
protected void setValue(ReferenceValueDefaultView a_Value)
a_Value
- protected Vector getFoundValues()
protected void setFoundValues(Vector a_FoundValues)
a_FoundValues
- protected void initResource()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- public AbstractValueView getShownValue() throws ActionAbortedException
getShownValue
in interface InlineValueEditorWidgetInterface
ActionAbortedException
public AbstractValueView[] getNewValues() throws ActionAbortedException
getNewValues
in interface InlineValueEditorWidgetInterface
ActionAbortedException
public void setShownValue(AbstractValueView obj) throws ActionAbortedException
setShownValue
in interface InlineValueEditorWidgetInterface
obj
-
ActionAbortedException
public void removeShownValue()
removeShownValue
in interface InlineValueEditorWidgetInterface
public void setWidgetEnabled(boolean enabled)
setWidgetEnabled
in interface InlineValueEditorWidgetInterface
enabled
- public boolean isWidgetEnabled()
isWidgetEnabled
in interface InlineValueEditorWidgetInterface
public InlineValueEditorWidgetInterface createNewWidget()
createNewWidget
in interface InlineValueEditorWidgetInterface
public void setMultiLineToolTip(String tooltip)
setMultiLineToolTip
in interface InlineValueEditorWidgetInterface
tooltip
- public String getToolTipText()
getToolTipText
in interface InlineValueEditorWidgetInterface
public void addKeyListener(KeyListener listener)
addKeyListener
in interface InlineValueEditorWidgetInterface
listener
- public void removeKeyListener(KeyListener listener)
removeKeyListener
in interface InlineValueEditorWidgetInterface
listener
- public void setDirty(boolean dirty)
setDirty
in interface InlineValueEditorWidgetInterface
dirty
- public boolean isDirty()
isDirty
in interface InlineValueEditorWidgetInterface
public void setAttributeDefinition(AttributeDefDefaultView definition)
setAttributeDefinition
in interface InlineValueEditorWidgetInterface
definition
- public AttributeDefDefaultView getAttributeDefinition()
getAttributeDefinition
in interface InlineValueEditorWidgetInterface
public void setParentReference(ValueEditorListenerInterface parent)
setParentReference
in interface InlineWidgetNotifiable
parent
- public ValueEditorListenerInterface getParentReference()
getParentReference
in interface InlineWidgetNotifiable
public void inlineButtonAction()
inlineButtonAction
in interface InlineWidgetNotifiable
protected void displayExceptionMessage(String key, Object[] params)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |