|
|||||||||||
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.ValueDetailsMainPanel
------------------------------------------------------------ This class extends JPanel and implements JAttrValueDetailsTabbedPanel Interface. This panel is initiated from AttributeValueDetailsDialog. ------------------------------------------------------------
Nested Class Summary | |
(package private) class |
ValueDetailsMainPanel.AddButtonPanel
Inner Button Panel class |
(package private) class |
ValueDetailsMainPanel.ButtonListener
|
(package private) class |
ValueDetailsMainPanel.SelectorListener
Inner SelectorListener class |
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 | |
protected JButton |
aButton
Add and Remove Button |
(package private) String |
ADD
|
protected AttributeValueDetailsDialog |
attributeValueDetailsDialog
Reference to main Dialog AttributeValueDetailsDialog |
protected ValueDetailsMainPanel.ButtonListener |
buttonListener
Reference to ButtonListener |
static String |
CONTAINER_RESOURCE
String containing the Resource Bundle |
private static boolean |
debug
|
private boolean |
isDirtyFlag
boolean flag to check if panel is dirty |
protected MainPanelSelector |
listSelector
ListSelector |
(package private) String |
LISTTITLE
|
private String |
measurementSystem
|
private boolean |
mode
boolean flag to check if mode is editable or not |
protected JButton |
rButton
|
(package private) String |
REMOVE
|
protected ResourceBundle |
resource
|
(package private) String |
TABTITLE
|
private InlineValueEditorWidgetInterface |
widget
Reference to Single entry 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 | |
ValueDetailsMainPanel()
Constructor initializes the resource bundle |
Method Summary | |
protected void |
addFunction()
Helper method Called when user clicks on Add button |
void |
apply()
Called to Apply all changes done on this panel This method will generally be called by the AttributeValueDetailsDialog |
void |
cancel()
Called to Cancel all changes done to this panel This method will generally be called by the AttributeValueDetailsDialog |
JPanel |
create(Component a,
boolean mode)
create method accepts two arguments, handle of AttributeValueDetailsDialog and boolean mode mode = true means edit mode mode = false means view mode |
private MainPanelSelector |
createAndPopulateListSelector()
Helper method to create and populate the list Selector |
protected JButton |
createButton(String str)
Helper method to create Button |
private InlineValueEditorWidgetInterface |
createWidget()
Helper method to create the widget |
boolean |
deleteLast(DefaultAttributeContainer ac)
|
private void |
disableComponents()
Helper method to disable widget and the buttons |
protected void |
displayExceptionMessage(String key,
Object[] params)
|
private void |
enableComponents()
Helper method to enable widget and the buttons |
String |
getTabName()
return the Tab name of this panel |
protected void |
initResource()
intialize the resource bundle and all the localized variables |
boolean |
isDirty()
return the current state of the dirty flag |
protected void |
removeFunction()
Helper method Called when user clicks Remove button |
private void |
setComponents()
Helper method to set all components on this panel |
void |
setDirty(boolean flag)
set the state of the dirty flag |
void |
setMeasurementSystem(String measurementSystem)
|
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 |
public static final String CONTAINER_RESOURCE
protected ResourceBundle resource
private static final boolean debug
String TABTITLE
String LISTTITLE
String ADD
String REMOVE
private boolean mode
private boolean isDirtyFlag
private InlineValueEditorWidgetInterface widget
protected AttributeValueDetailsDialog attributeValueDetailsDialog
protected JButton aButton
protected JButton rButton
protected MainPanelSelector listSelector
protected ValueDetailsMainPanel.ButtonListener buttonListener
private String measurementSystem
Constructor Detail |
public ValueDetailsMainPanel()
Method Detail |
public JPanel create(Component a, boolean mode)
create
in interface JAttrValueDetailsTabbedPanel
public void apply()
apply
in interface JAttrValueDetailsTabbedPanel
public void cancel()
cancel
in interface JAttrValueDetailsTabbedPanel
public boolean isDirty()
isDirty
in interface JAttrValueDetailsTabbedPanel
public void setDirty(boolean flag)
setDirty
in interface JAttrValueDetailsTabbedPanel
public String getTabName()
getTabName
in interface JAttrValueDetailsTabbedPanel
protected void initResource()
private void setComponents()
private void disableComponents()
private void enableComponents()
private InlineValueEditorWidgetInterface createWidget()
private MainPanelSelector createAndPopulateListSelector()
public void valueChanged()
ValueEditorListenerInterface
valueChanged
in interface ValueEditorListenerInterface
public void valueShown(AttributeDefDefaultView definition, AbstractValueView obj)
ValueEditorListenerInterface
valueShown
in interface ValueEditorListenerInterface
definition
- obj
- protected void addFunction()
protected void removeFunction()
protected JButton createButton(String str)
protected void displayExceptionMessage(String key, Object[] params)
public void setMeasurementSystem(String measurementSystem)
setMeasurementSystem
in interface MeasurementSystemChangeListener
measurementSystem
- public boolean deleteLast(DefaultAttributeContainer ac)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |