|
||||||||||
| 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.tentackle.ui.FormPanel
org.tentackle.appworx.AppDbObjectTablePanel
public class AppDbObjectTablePanel
| Nested Class Summary |
|---|
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
ACTION_CANCEL
|
static String |
ACTION_SAVE
|
static int |
SHOW_CANCEL_BUTTON
|
static int |
SHOW_DELETE_BUTTON
|
static int |
SHOW_DOWN_BUTTON
|
static int |
SHOW_NEW_BUTTON
|
static int |
SHOW_SAVE_BUTTON
|
static int |
SHOW_UP_BUTTON
|
| 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.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 | |
|---|---|
AppDbObjectTablePanel()
Creates an empty table panel. |
|
AppDbObjectTablePanel(FormTableEntry template,
List<? extends AppDbObject> objList,
boolean ordered,
String prefName)
Creates a table panel. |
|
| Method Summary | |
|---|---|
void |
addTableModelListener(TableModelListener l)
Adds a TableModelListener. |
boolean |
getButtonsLessObtrusive()
|
FormButton |
getCancelButton()
Get access to the cancel button. |
FormButton |
getDeleteButton()
Get access to the delete button. |
FormTable |
getFormTable()
Gets the table. |
FormButton |
getMoveDownButton()
Get access to the move-down button. |
FormButton |
getMoveUpButton()
Get access to the move-up button. |
FormButton |
getNewButton()
Get access to the new button. |
boolean |
getNewBySearch()
Gets the setting what happens when the new-button is pressed. |
FormButton |
getSaveButton()
Get access to the save button. |
String |
getTableName()
Gets the table preferences name. |
FormTableEntry |
getTemplate()
Gets the template. |
int |
getVisibleButtons()
Gets the visible buttons mask |
boolean |
isCancelButtonVisible()
Gets the visibility of the cancel button. |
boolean |
isDataChanged()
Gets status info whether data has been changed or not. |
boolean |
isDeleteButtonVisible()
Gets the visibility of the delete button. |
boolean |
isDownButtonVisible()
Gets the visibility of the down button. |
boolean |
isNewButtonVisible()
Gets the visibility of the save button. |
boolean |
isOrdered()
Gets the ordered feature. |
boolean |
isSaveButtonVisible()
Gets the visibility of the save button. |
boolean |
isUnique()
Gets the flag whether objects can be added more than once. |
boolean |
isUpButtonVisible()
Gets the visibility of the up button. |
void |
listChanged(List<? extends AppDbObject> objList)
Shows a list of data objects. |
void |
removeTableModelListener(TableModelListener l)
Removes a TableModelListener. |
AppDbObject |
searchObject()
If newBySearch is enabled this method is invoked to run the search. |
void |
setAllChangeable(boolean changeable)
Sets the changeable attribute of all components of this container and all sub containers. |
void |
setButtonsLessObtrusive(boolean flag)
Makes the buttons less obtrusive. |
void |
setCancelButtonVisible(boolean visible)
Sets the visibility of the cancel button. |
void |
setDeleteButtonVisible(boolean visible)
Sets the visibility of the delete button. |
void |
setDownButtonVisible(boolean visible)
Sets the visibility of the down button. |
void |
setNewButtonVisible(boolean visible)
Sets the visibility of the new button. |
void |
setNewBySearch(boolean newBySearch)
Defines what happens when the new-button is pressed. |
void |
setOrdered(boolean ordered)
Defines whether the data is ordered or not. |
void |
setSaveButtonVisible(boolean visible)
Sets the visibility of the save button. |
void |
setTableName(String prefName)
Sets the table name which is used to load the preferences. |
void |
setTemplate(FormTableEntry template)
Changes the template (necessary if context changed). |
void |
setUnique(boolean unique)
Defines whether objects may not appear more than once. Setting unique makes only sense if newBySearch is enabled as well. |
void |
setup(FormTableEntry template,
List<? extends AppDbObject> objList,
boolean ordered,
String prefName)
Creates a table panel. |
void |
setUpButtonVisible(boolean visible)
Sets the visibility of the up button. |
void |
setVisibleButtons(int mask)
Sets the visible buttons mask. |
| Methods inherited from class org.tentackle.ui.FormPanel |
|---|
addActionListener, areValuesChanged, componentAdded, componentRemoved, fireActionPerformed, getFormValues, getHelpURL, getParentWindow, getTitle, invalidateParentInfo, isAllChangeable, isHonourAllChangeable, removeActionListener, saveValues, setFormValues, setFormValuesKeepChanged, setHelpURL, setHonourAllChangeable, setTitle, showHelp, triggerValuesChanged |
| 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 ACTION_SAVE
public static final String ACTION_CANCEL
public static final int SHOW_CANCEL_BUTTON
public static final int SHOW_DELETE_BUTTON
public static final int SHOW_DOWN_BUTTON
public static final int SHOW_UP_BUTTON
public static final int SHOW_SAVE_BUTTON
public static final int SHOW_NEW_BUTTON
| Constructor Detail |
|---|
public AppDbObjectTablePanel(FormTableEntry template,
List<? extends AppDbObject> objList,
boolean ordered,
String prefName)
template - template for the table-rowobjList - list of AppDbObjectsordered - true if objList is an ordered list, i.e. the position in the objList is relevantprefName - is the FormTable-Name for preferences (installs FormTableUtility-Menu too), null = none (no Menu either)public AppDbObjectTablePanel()
| Method Detail |
|---|
public void setup(FormTableEntry template,
List<? extends AppDbObject> objList,
boolean ordered,
String prefName)
template - the template for the table-rowobjList - the list of AppDbObjectsordered - true if objList is an ordered list, i.e. the position in the objList is relevantprefName - the FormTable-Name for preferences (installs FormTableUtility-Menu too), null = none (no Menu either)public void setOrdered(boolean ordered)
ordered - true if sort necessary, false no sortpublic boolean isOrdered()
public void setNewBySearch(boolean newBySearch)
newBySearch - true if open a search dialog to select object, else create empty objectpublic boolean getNewBySearch()
public AppDbObject searchObject()
public void setUnique(boolean unique)
Notice that the initial object list is not checked, i.e. the flag applies only to newly added objects.
unique - true if objects may not appear more than oncepublic boolean isUnique()
public void setTableName(String prefName)
prefName - the table name, null = none (uninstalls the popup, if any)public String getTableName()
public void setVisibleButtons(int mask)
mask - is a bitmask of SHOW_..._BUTTONpublic int getVisibleButtons()
public void setCancelButtonVisible(boolean visible)
visible - is true if visible, false if notpublic boolean isCancelButtonVisible()
public void setDeleteButtonVisible(boolean visible)
visible - is true if visible, false if notpublic boolean isDeleteButtonVisible()
public void setDownButtonVisible(boolean visible)
visible - is true if visible, false if notpublic boolean isDownButtonVisible()
public void setUpButtonVisible(boolean visible)
visible - is true if visible, false if notpublic boolean isUpButtonVisible()
public void setSaveButtonVisible(boolean visible)
visible - is true if visible, false if notpublic boolean isSaveButtonVisible()
public void setNewButtonVisible(boolean visible)
visible - is true if visible, false if notpublic boolean isNewButtonVisible()
public void setButtonsLessObtrusive(boolean flag)
flag - true for less obstrusive buttons, false is default.public FormButton getCancelButton()
public FormButton getDeleteButton()
public FormButton getMoveDownButton()
public FormButton getMoveUpButton()
public FormButton getSaveButton()
public FormButton getNewButton()
public boolean getButtonsLessObtrusive()
public void setTemplate(FormTableEntry template)
template - the templatepublic FormTableEntry getTemplate()
public void setAllChangeable(boolean changeable)
FormContainer
setAllChangeable in interface FormContainersetAllChangeable in class FormPanelchangeable - true if all changeable (default)public void listChanged(List<? extends AppDbObject> objList)
objList - the list of objectspublic boolean isDataChanged()
public FormTable getFormTable()
public void addTableModelListener(TableModelListener l)
l - the listener to addpublic void removeTableModelListener(TableModelListener l)
l - the listener to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||