|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
wt.clients.iba.container.AttributeValueDetailsDialog
------------------------------------------------------------ This class extends JDialog. The Dialog is called from the Container Editor Its passed the current AttributeDefinition ,the containerHolder and the single entry widget. ------------------------------------------------------------
Nested Class Summary | |
(package private) class |
AttributeValueDetailsDialog.DefaultButtonPanelListener
|
Nested classes inherited from class javax.swing.JDialog |
JDialog.AccessibleJDialog |
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
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 Vector |
addedObjs
|
protected DefaultAttributeContainer |
attributeContainer
|
protected AttributeDefDefaultView |
attributeDefinition
|
protected DefaultEditorButtonPanel |
buttonPanel
reference to buttonPanel |
protected Vector |
changedObjs
|
private static String |
CONTAINER_RESOURCE
String containing the Resource Bundle |
private static boolean |
debug
|
(package private) boolean |
errorFlag
|
protected IBAHolder |
ibaHolder
reference to IBAHolder and AttributeContainer and AttributeDefinition |
protected static String |
measurementSystem
|
(package private) boolean |
mode
boolean to determine if editable or not true means editable false means noeditable |
protected Vector |
originalObjs
Data structure shared by all the tabs contains four vectors originalObjs vector has all the original value objects addedObjs vector has newly added value objects removedObjs vector has objects removed value objects changedObjs vector maintains value objects changed. |
protected JTabbedPane |
pane
reference to JTabbedPane |
protected Vector |
removedObjs
|
protected ResourceBundle |
resource
|
protected ValueDetailsConstraintsPanel |
valueDetailsConstraintsPanel
|
protected ValueDetailsDependencyPanel |
valueDetailsDependencyPanel
|
protected ValueDetailsMainPanel |
valueDetailsMainPanel
JAttrValueDetailsTabbedPanel is a interface which all Tab panel have to implement. |
protected InlineValueEditorWidgetInterface |
widget
reference to InlineValueEditorWidget |
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
|
Fields inherited from class java.awt.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 javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
AttributeValueDetailsDialog(AttributeDefDefaultView attributeDefDefaultView,
DefaultAttributeContainer attributeContainer,
InlineValueEditorWidgetInterface widget)
|
|
AttributeValueDetailsDialog(AttributeDefDefaultView attributeDefDefaultView,
IBAHolder ibaHolder,
InlineValueEditorWidgetInterface widget)
This constructor will create the AttributeValueDetailsEditor, initializeData and Components. |
|
AttributeValueDetailsDialog(Frame parent,
AttributeDefDefaultView attributeDefDefaultView,
DefaultAttributeContainer attributeContainer,
InlineValueEditorWidgetInterface widget,
String measurementSystem,
boolean mode)
|
|
AttributeValueDetailsDialog(Frame parent,
AttributeDefDefaultView attributeDefDefaultView,
IBAHolder ibaHolder,
InlineValueEditorWidgetInterface widget,
String measurementSystem,
boolean mode)
|
Method Summary | |
private void |
addEachValueToContainer()
This method adds all the values in the addedObjs vector to the container On success it moves the objects to originalObjs |
protected void |
allTabPanelApply()
calls apply of all tabs |
protected boolean |
anyTabPanelDirty()
check if valueDetailsDependencyPanel is dirty or valueDetailsMainPanel is dirty |
protected void |
applyToContainer()
This method applies all the cached objects in the four vectors to the container |
protected void |
buttonApply()
buttonApply method called when Apply button clicked |
protected void |
buttonCancel()
buttonCancel method called when Cancel button clicked |
protected void |
buttonOk()
buttonOk method called when Ok button clicked |
private void |
changeEachValueToContainer()
This method updates all values in the changedObjs vector On success it moves the objects to originalObjs |
private DefaultEditorButtonPanel |
createButtonPanel()
This method is a private helper method which creates the button Panel |
void |
displayAllValues()
display contents of the container |
void |
displayAllVectors()
display contents of all Vectors |
private void |
displayValue(Object ab)
|
Vector |
getAddedObjs()
|
DefaultAttributeContainer |
getAttributeContainer()
|
AttributeDefDefaultView |
getAttributeDefinition()
|
Vector |
getChangedObjs()
|
IBAHolder |
getIBAHolder()
|
Vector |
getOriginalObjs()
|
Vector |
getRemovedObjs()
|
ResourceBundle |
getResourceBundle()
|
JTabbedPane |
getTabbedPane()
|
ValueDetailsConstraintsPanel |
getValueDetailsConstraintsPanel()
|
ValueDetailsDependencyPanel |
getValueDetailsDependencyPanel()
|
ValueDetailsMainPanel |
getValueDetailsMainPanel()
getter method's |
InlineValueEditorWidgetInterface |
getWidget()
|
private void |
initializeData()
This method is a private helper method which initializes the data structure i.e. |
protected void |
initResource()
|
void |
moveTo(Vector dest,
Object obj)
This method moves an object from one of the four vectors to the specified the destination Vector |
void |
moveTo(Vector dest,
Object[] objs)
This method moves objects stored in a array from one of the four vectors to the specified the destination Vector |
void |
moveTo(Vector dest,
Vector objs)
This method moves objects stored in Vector from one of the four vectors to the specified the destination Vector |
protected void |
placeComponents()
This method is a private helper method which places all the components inside the dialog |
private void |
placeInCenter()
This method is a private helper method which places the Dialog in the centre of the Screen |
private void |
removeEachValueFromContainer()
This method removes all the values in removedObjs vector from the container |
void |
removeObject(Object obj)
|
void |
removeObjects(Vector objs)
|
protected void |
setAllTabPanelDirty(boolean flag)
resets dirty flag of all tabs |
void |
setMeasurementSystem(String measurementSystem)
|
void |
showDialog()
This method is called to show the modal Dialog |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String CONTAINER_RESOURCE
protected ResourceBundle resource
private static final boolean debug
boolean mode
boolean errorFlag
protected Vector originalObjs
protected Vector addedObjs
protected Vector removedObjs
protected Vector changedObjs
protected ValueDetailsMainPanel valueDetailsMainPanel
protected ValueDetailsConstraintsPanel valueDetailsConstraintsPanel
protected ValueDetailsDependencyPanel valueDetailsDependencyPanel
protected JTabbedPane pane
protected DefaultEditorButtonPanel buttonPanel
protected IBAHolder ibaHolder
protected DefaultAttributeContainer attributeContainer
protected AttributeDefDefaultView attributeDefinition
protected InlineValueEditorWidgetInterface widget
protected static String measurementSystem
Constructor Detail |
public AttributeValueDetailsDialog(AttributeDefDefaultView attributeDefDefaultView, IBAHolder ibaHolder, InlineValueEditorWidgetInterface widget)
public AttributeValueDetailsDialog(AttributeDefDefaultView attributeDefDefaultView, DefaultAttributeContainer attributeContainer, InlineValueEditorWidgetInterface widget)
public AttributeValueDetailsDialog(Frame parent, AttributeDefDefaultView attributeDefDefaultView, IBAHolder ibaHolder, InlineValueEditorWidgetInterface widget, String measurementSystem, boolean mode)
public AttributeValueDetailsDialog(Frame parent, AttributeDefDefaultView attributeDefDefaultView, DefaultAttributeContainer attributeContainer, InlineValueEditorWidgetInterface widget, String measurementSystem, boolean mode)
Method Detail |
public void showDialog()
protected void initResource()
private void initializeData()
protected void placeComponents()
private void placeInCenter()
public ValueDetailsMainPanel getValueDetailsMainPanel()
public ValueDetailsConstraintsPanel getValueDetailsConstraintsPanel()
public ValueDetailsDependencyPanel getValueDetailsDependencyPanel()
public ResourceBundle getResourceBundle()
public Vector getOriginalObjs()
public Vector getAddedObjs()
public Vector getRemovedObjs()
public Vector getChangedObjs()
public InlineValueEditorWidgetInterface getWidget()
public JTabbedPane getTabbedPane()
public IBAHolder getIBAHolder()
public DefaultAttributeContainer getAttributeContainer()
public AttributeDefDefaultView getAttributeDefinition()
public void removeObject(Object obj)
public void removeObjects(Vector objs)
public void moveTo(Vector dest, Object obj)
public void moveTo(Vector dest, Vector objs)
public void moveTo(Vector dest, Object[] objs)
private DefaultEditorButtonPanel createButtonPanel()
protected void buttonApply()
protected void buttonCancel()
protected void buttonOk()
protected void applyToContainer()
private void addEachValueToContainer()
private void removeEachValueFromContainer()
private void changeEachValueToContainer()
protected boolean anyTabPanelDirty()
protected void allTabPanelApply()
protected void setAllTabPanelDirty(boolean flag)
public void displayAllValues()
public void displayAllVectors()
private void displayValue(Object ab)
public void setMeasurementSystem(String measurementSystem)
setMeasurementSystem
in interface MeasurementSystemChangeListener
measurementSystem
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |