|
|||||||||||
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.container.InlineValueEditorWrapper
This wrapper will be added to the table cell as it implements the JCSMTableComponent. After creation, it will create the InlineValueEditorWidget depending on the AttributeContainer and the AttributeDefDefaultView. It consists of the widget, the up spinner button, the down spinner button, and the details button.
Nested Class Summary | |
(package private) class |
InlineValueEditorWrapper.DetailsPanel
|
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 |
btnDetails
|
private JButton |
btnDown
|
private JButton |
btnUp
|
private static String |
CLASSNAME
|
private DefaultAttributeContainer |
container
|
protected static String |
CONTAINER_RESOURCE
|
protected ResourceBundle |
containerResource
|
private int |
current
|
private Vector |
dataList
|
private static boolean |
debug
|
private AttributeDefDefaultView |
definition
|
private boolean |
dirty
|
private boolean |
edit
|
private boolean |
immutable
|
private int |
max
|
private String |
measurementSystem
|
private ValueEditorListenerInterface |
parent
|
private static String |
RESOURCE
|
private static String |
versionID
|
private InlineValueEditorWidgetInterface |
widget
|
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 | |
InlineValueEditorWrapper(ValueEditorListenerInterface parent,
DefaultAttributeContainer container,
AttributeDefDefaultView definition,
boolean edit)
Create the wrapper. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Inherited from ActionListener. |
void |
addAndDisplayValue(AbstractValueView obj)
Add and display the AbstractValueView object. |
int |
addValue(AbstractValueView obj)
Set the AbstractValueView to this wrapper. |
void |
addValues(Vector vector)
Set the values from the vector of AbstractValueView. |
JToolTip |
createToolTip()
|
private void |
createWidget(DefaultAttributeContainer container,
AttributeDefDefaultView definition)
private method to create the InlineValueEditorWidget. |
private void |
detailsClick()
Action for the details click. |
protected void |
displayExceptionMessage(String key,
Object[] params)
|
void |
displayValue(AbstractValueView obj)
Display the value. |
private void |
displayValue(int index)
Display the value at the index. |
private void |
downClick()
Action for the down click spinner. |
private int |
findInsertPosition(AbstractValueView obj)
Find the insert position of this object to the vector. |
JComponent |
getTableComponent()
|
String |
getToolTipText()
|
AbstractValueView |
getValue()
Get the current display AbstractValueView. |
Vector |
getValues()
Get all AbstractValueView from this wrapper. |
boolean |
hasUninitializedValues()
|
protected void |
initResource()
Initialize resource bundle for internationalization and localization. |
boolean |
isDirty()
|
boolean |
isWidgetEnabled()
|
private void |
populateInitialValues()
Populate the Initial AbstractValueView values. |
void |
refreshConstraint()
|
void |
saveValue()
|
protected void |
setBusy(boolean busy)
|
void |
setMeasurementSystem(String measurementSystem)
|
void |
setWidgetEnabled(boolean state)
|
private void |
upClick()
Action for the up click spinner. |
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 boolean debug
private static final String RESOURCE
private static final String CLASSNAME
private static final String versionID
private ValueEditorListenerInterface parent
private DefaultAttributeContainer container
private AttributeDefDefaultView definition
private InlineValueEditorWidgetInterface widget
private JButton btnUp
private JButton btnDown
private JButton btnDetails
private Vector dataList
private boolean edit
private String measurementSystem
protected static final String CONTAINER_RESOURCE
protected ResourceBundle containerResource
private int max
private int current
private boolean dirty
private boolean immutable
Constructor Detail |
public InlineValueEditorWrapper(ValueEditorListenerInterface parent, DefaultAttributeContainer container, AttributeDefDefaultView definition, boolean edit)
parent
- container
- definition
- edit
- Method Detail |
protected void initResource()
public int addValue(AbstractValueView obj)
obj
-
public void addValues(Vector vector)
vector
- public void displayValue(AbstractValueView obj) throws ActionAbortedException
obj
-
ActionAbortedException
private void displayValue(int index) throws ActionAbortedException
index
-
ActionAbortedException
public void addAndDisplayValue(AbstractValueView obj) throws ActionAbortedException
obj
-
ActionAbortedException
private int findInsertPosition(AbstractValueView obj)
obj
-
public AbstractValueView getValue() throws ActionAbortedException
ActionAbortedException
public Vector getValues()
private void populateInitialValues()
private void upClick()
private void downClick()
private void detailsClick()
private void createWidget(DefaultAttributeContainer container, AttributeDefDefaultView definition)
container
- definition
- public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- public void valueChanged()
valueChanged
in interface ValueEditorListenerInterface
public void valueShown(AttributeDefDefaultView definition, AbstractValueView obj)
valueShown
in interface ValueEditorListenerInterface
definition
- obj
- public JComponent getTableComponent()
getTableComponent
in interface JCSMTableComponent
public void setWidgetEnabled(boolean state)
setWidgetEnabled
in interface JCSMTableComponent
state
- public boolean isWidgetEnabled()
isWidgetEnabled
in interface JCSMTableComponent
public boolean isDirty()
isDirty
in interface JCSMTableComponent
public void saveValue() throws ActionAbortedException
saveValue
in interface JCSMTableComponent
ActionAbortedException
public String getToolTipText()
getToolTipText
in interface JCSMTableComponent
public void setMeasurementSystem(String measurementSystem)
setMeasurementSystem
in interface MeasurementSystemChangeListener
measurementSystem
- public boolean hasUninitializedValues()
public JToolTip createToolTip()
protected void setBusy(boolean busy)
protected void displayExceptionMessage(String key, Object[] params)
public void refreshConstraint()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |