|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| 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
org.openquark.gems.client.valueentry.ValueEditor
org.openquark.gems.client.valueentry.StructuredValueEditor
org.openquark.gems.client.valueentry.TableValueEditor
org.openquark.gems.client.valueentry.AbstractListValueEditor
public abstract class AbstractListValueEditor
This is a super class for value editors which display a list-like interface to the user. This class should not assume that it is editing a specific type of value node (such as a ListValueNode), but instead work with a AbstractListTableModel to manipulate the value.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.openquark.gems.client.valueentry.ValueEditor |
|---|
ValueEditor.Info, ValueEditor.ValueEditorKeyListener |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class org.openquark.gems.client.valueentry.TableValueEditor |
|---|
table, tableModel, tableScrollPane |
| Fields inherited from class org.openquark.gems.client.valueentry.ValueEditor |
|---|
valueEditorHierarchyManager, valueEditorManager |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| 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 | |
|---|---|
protected |
AbstractListValueEditor(ValueEditorHierarchyManager valueEditorHierarchyManager)
Constructor for AbstractListValueEditor. |
| Method Summary | |
|---|---|
protected void |
addButton_ActionEvents()
Adds a new row with default values to the table. |
protected JPanel |
createCenterPanel()
|
protected JPanel |
createDivideLeftPanel()
Creates the panel on the left side of the divider pane. |
protected JPanel |
createDivideRightPanel()
|
protected JPanel |
createEastPanel()
|
protected abstract AbstractListTableModel |
createListTableModel(ValueNode valueNode)
Returns a new model to be used for displaying and editing the data as a list. |
protected JPanel |
createSouthPanel()
|
protected ValueEditorTableModel |
createTableModel(ValueNode valueNode)
Creates the table model to use by this table editor. |
protected boolean |
displayElementIcon()
Returns whether an the type icon should be displayed in the editor. |
protected void |
downButton_ActionEvents()
Move the selected row one down. |
protected void |
enableButtonsForTableState()
Enable/Disable the buttons according to the current state of the table. |
protected JButton |
getAddButton()
Return the AddButton property value. |
protected JPanel |
getCenterPanel()
Return the CenterPanel property value. |
protected JSplitPane |
getCenterSplitPanel()
|
protected JPanel |
getDivideLeftPanel()
|
protected JPanel |
getDivideRightPanel()
|
protected JButton |
getDownButton()
Return the DownButton property value. |
protected JPanel |
getEastPanel()
Return the EastPanel property value. |
protected JTable |
getElementIndexHeader()
|
protected TypeExpr |
getListElementType()
|
protected AbstractListTableModel |
getListTableModel()
Returns an interface for manipulating the contents of the list. |
protected JButton |
getRemoveButton()
Return the RemoveButton property value. |
protected JPanel |
getSouthPanel()
Return the SouthPanel property value. |
protected JButton |
getUpButton()
Return the UpButton property value. |
void |
handleCellActivated()
When a cell has been activated, there might be set-up issues that need to be done. |
void |
handleElementLaunchingEditor()
Performs any setup needed when a child editor is launched. |
void |
refreshDisplay()
Refreshes the ValueEditor to display the latest data. |
protected void |
removeButton_ActionEvents()
Removes the selected row. |
void |
replaceValueNode(ValueNode newValueNode,
boolean preserveInfo)
Replaces the current valueNode with newValueNode. |
protected void |
resetComponents()
Adds all of the subcomponents to 'this'. |
void |
setEditable(boolean b)
Set the editable state for the ValueEditor. |
void |
setInitialValue()
Call this method to make the ValueEditor initialize its values. |
protected void |
upButton_ActionEvents()
Moves the selected row up one. |
protected void |
updateColumnSizes()
Updates the sizes of the table columns via the auto-resize function of the table, such that either the columns are all proportionately stretched to fit screen size, or the auto-resize is turned off to allow columns to display their preferred size. |
protected void |
updateIconToolTip()
Call this whenever the icon's tooltip needs to be refreshed. |
protected void |
updateRowHeaderDivider()
Update the location of the split panel divider to show the whole row index text, if it is not already doing so. |
protected void |
userHasResized()
This method is called if the user manually resizes the value editor. |
| Methods inherited from class org.openquark.gems.client.valueentry.TableValueEditor |
|---|
cancelValue, clearSelection, commitChildChanges, commitValue, createTableCellEditor, createTableHeaderRenderer, getColumnCount, getDefaultFocusComponent, getRowCount, getSaveSize, getSelectedColumn, getSelectedRow, getTableHeader, initializeTableCellRenderers, initSize, loadSavedSize, scrollToSelectedRow, selectCell, setOwnerValueNode, setTableModel, showTypeIconInColumnHeading |
| 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 |
| Constructor Detail |
|---|
protected AbstractListValueEditor(ValueEditorHierarchyManager valueEditorHierarchyManager)
valueEditorHierarchyManager - the hierarchy manager for the editor| Method Detail |
|---|
protected ValueEditorTableModel createTableModel(ValueNode valueNode)
TableValueEditor
createTableModel in class TableValueEditorvalueNode - the value node to create the table model for
TableValueEditor.createTableModel(org.openquark.cal.valuenode.ValueNode)protected abstract AbstractListTableModel createListTableModel(ValueNode valueNode)
protected AbstractListTableModel getListTableModel()
protected void resetComponents()
public void setEditable(boolean b)
ValueEditor
setEditable in class TableValueEditorValueEditor.setEditable(boolean)protected void upButton_ActionEvents()
protected void downButton_ActionEvents()
protected void addButton_ActionEvents()
protected void removeButton_ActionEvents()
protected JButton getAddButton()
protected JPanel getCenterPanel()
protected JSplitPane getCenterSplitPanel()
protected JPanel createCenterPanel()
protected JPanel getDivideRightPanel()
protected JPanel createDivideRightPanel()
protected JPanel getDivideLeftPanel()
protected JPanel createDivideLeftPanel()
protected JTable getElementIndexHeader()
protected boolean displayElementIcon()
protected JButton getDownButton()
protected JPanel getEastPanel()
protected JPanel createEastPanel()
protected JButton getRemoveButton()
protected JPanel getSouthPanel()
protected JPanel createSouthPanel()
protected JButton getUpButton()
public void handleCellActivated()
handleCellActivated in class TableValueEditorpublic void handleElementLaunchingEditor()
handleElementLaunchingEditor in class TableValueEditorprotected void enableButtonsForTableState()
protected void updateRowHeaderDivider()
public void setInitialValue()
ValueEditor
setInitialValue in class ValueEditorValueEditor.setInitialValue()public void refreshDisplay()
ValueEditor
refreshDisplay in class ValueEditorValueEditor.refreshDisplay()protected void userHasResized()
userHasResized in class ValueEditorprotected void updateColumnSizes()
protected void updateIconToolTip()
protected TypeExpr getListElementType()
public void replaceValueNode(ValueNode newValueNode,
boolean preserveInfo)
replaceValueNode in class TableValueEditorValueEditor.replaceValueNode(org.openquark.cal.valuenode.ValueNode, boolean)
| |||