|
|||||||||||
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.navigation.InlineDiscreteValueEditorWrapper
Nested Class Summary | |
(package private) class |
InlineDiscreteValueEditorWrapper.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 QueryFormElementDefaultView |
container
|
private int |
current
|
private Vector |
dataList
|
private static boolean |
debug
|
private AttributeDefDefaultView |
definition
|
private boolean |
dirty
|
private boolean |
disableDetails
|
private DiscreteQFElementValueDefaultView |
discreteHolder1
|
private DiscreteQFElementValueDefaultView |
discreteHolder2
|
private boolean |
edit
|
private boolean |
hasNullValue
|
private int |
max
|
String |
measurementSystem
|
protected static String |
NAVIGATION_RESOURCE
|
protected ResourceBundle |
nvResource
|
private QueryInfoObject |
queryObject
|
private static String |
RESOURCE
|
private AbstractNavStructView |
structure
|
private AbstractQueryTargetView |
target
|
private static String |
versionID
|
private InlineDiscreteValueEditorWidget |
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 | |
InlineDiscreteValueEditorWrapper(QueryFormElementDefaultView container,
AttributeDefDefaultView definition,
boolean edit)
Create the wrapper. |
|
InlineDiscreteValueEditorWrapper(QueryInfoObject queryObject,
QueryFormElementDefaultView container,
AttributeDefDefaultView definition,
boolean edit)
|
|
InlineDiscreteValueEditorWrapper(QueryInfoObject queryObject,
QueryFormElementDefaultView container,
AttributeDefDefaultView definition,
boolean edit,
boolean disableDetails)
|
|
InlineDiscreteValueEditorWrapper(QueryInfoObject queryObject,
QueryFormElementDefaultView container,
AttributeDefDefaultView definition,
boolean edit,
boolean disableDetails,
InlineValueEditorWidgetInterface enforced_widget)
|
Method Summary | |
void |
actionPerformed(ActionEvent e)
|
void |
addAndDisplayValue(EnhancedDiscreteQFValue obj)
Add and display the AbstractValueView object. |
int |
addValue(EnhancedDiscreteQFValue obj)
Set the AbstractValueView to this wrapper. |
void |
addValues(Vector vector)
Set the values from the vector of AbstractValueView. |
private void |
createWidget(AttributeDefDefaultView definition,
InlineValueEditorWidgetInterface enforced_widget)
private method to create the InlineValueEditorWidget. |
private void |
detailsClick()
Action for the details click. |
protected void |
displayExceptionMessage(String key,
Object[] params)
|
void |
displayValue(EnhancedDiscreteQFValue 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(EnhancedDiscreteQFValue obj)
Find the insert position of this object to the vector. |
private int |
findValuePosition(EnhancedDiscreteQFValue obj)
|
JComponent |
getTableComponent()
|
String |
getToolTipText()
|
EnhancedDiscreteQFValue |
getValue()
Get the current display AbstractValueView. |
Vector |
getValues()
Get all AbstractValueView from this wrapper. |
protected void |
initResource()
Initialize resource bundle for internationalization and localization. |
boolean |
isDirty()
|
boolean |
isWidgetEnabled()
|
private void |
populateInitialValues()
Populate the Initial AbstractValueView values. |
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 String RESOURCE
private static final String CLASSNAME
private static final boolean debug
private static final String versionID
private QueryFormElementDefaultView container
private AbstractNavStructView structure
private AbstractQueryTargetView target
private AttributeDefDefaultView definition
private QueryInfoObject queryObject
private DiscreteQFElementValueDefaultView discreteHolder1
private DiscreteQFElementValueDefaultView discreteHolder2
private InlineDiscreteValueEditorWidget widget
private JButton btnUp
private JButton btnDown
private JButton btnDetails
private Vector dataList
private boolean edit
private boolean dirty
private boolean hasNullValue
private int max
private int current
private boolean disableDetails
protected static final String NAVIGATION_RESOURCE
protected ResourceBundle nvResource
public String measurementSystem
Constructor Detail |
public InlineDiscreteValueEditorWrapper(QueryFormElementDefaultView container, AttributeDefDefaultView definition, boolean edit)
container
- definition
- edit
- public InlineDiscreteValueEditorWrapper(QueryInfoObject queryObject, QueryFormElementDefaultView container, AttributeDefDefaultView definition, boolean edit)
public InlineDiscreteValueEditorWrapper(QueryInfoObject queryObject, QueryFormElementDefaultView container, AttributeDefDefaultView definition, boolean edit, boolean disableDetails)
public InlineDiscreteValueEditorWrapper(QueryInfoObject queryObject, QueryFormElementDefaultView container, AttributeDefDefaultView definition, boolean edit, boolean disableDetails, InlineValueEditorWidgetInterface enforced_widget)
queryObject
- container
- definition
- edit
- Method Detail |
protected void initResource()
public int addValue(EnhancedDiscreteQFValue obj)
obj
-
public void addValues(Vector vector)
vector
- public void displayValue(EnhancedDiscreteQFValue obj) throws ActionAbortedException
obj
-
ActionAbortedException
private void displayValue(int index) throws ActionAbortedException
index
-
ActionAbortedException
public void addAndDisplayValue(EnhancedDiscreteQFValue obj) throws ActionAbortedException
obj
-
ActionAbortedException
private int findInsertPosition(EnhancedDiscreteQFValue obj)
obj
-
private int findValuePosition(EnhancedDiscreteQFValue obj)
obj
-
public EnhancedDiscreteQFValue getValue() throws ActionAbortedException
ActionAbortedException
public Vector getValues()
private void populateInitialValues()
private void upClick()
private void downClick()
private void detailsClick()
private void createWidget(AttributeDefDefaultView definition, InlineValueEditorWidgetInterface enforced_widget)
definition
- public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- protected void setBusy(boolean busy)
busy
- 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
- protected void displayExceptionMessage(String key, Object[] params)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |