|
Adempiere 3.5.2a | |||||||||
| 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
org.compiere.swing.CDialog
org.compiere.grid.ed.ValuePreference
public class ValuePreference
Maintain Value Preferences. To delete a preference, select a null value and save.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| 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 |
NAME
The Name of the Editor |
| Fields inherited from class org.compiere.swing.CDialog |
|---|
ACTION_DISPOSE, s_dialogAction, s_disposeKeyStroke |
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| 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 | |
|---|---|
ValuePreference(Frame frame,
int WindowNo,
int AD_Client_ID,
int AD_Org_ID,
int AD_User_ID,
int AD_Window_ID,
String Attribute,
String DisplayAttribute,
String Value,
String DisplayValue,
int displayType,
int AD_Reference_ID)
Constructor |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Action Listener |
static CMenuItem |
addMenu(ActionListener l,
JPopupMenu popupMenu)
Create the popup menu item to start the ValuePreference editor. |
int |
delete()
Delete Preference |
void |
insert()
Save to Disk |
static ValuePreference |
start(GridField mField,
Object aValue)
Factory |
static ValuePreference |
start(GridField mField,
Object aValue,
String aDisplayValue)
Factory |
| Methods inherited from class org.compiere.swing.CDialog |
|---|
dialogInit, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, setTitle |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
| Constructor Detail |
|---|
public ValuePreference(Frame frame,
int WindowNo,
int AD_Client_ID,
int AD_Org_ID,
int AD_User_ID,
int AD_Window_ID,
String Attribute,
String DisplayAttribute,
String Value,
String DisplayValue,
int displayType,
int AD_Reference_ID)
frame - parentWindowNo - window noAD_Client_ID - clientAD_Org_ID - orgAD_User_ID - userAD_Window_ID - window idAttribute - attributeDisplayAttribute - attribute displayValue - valueDisplayValue - calue displaydisplayType - display typeAD_Reference_ID - reference| Method Detail |
|---|
public static ValuePreference start(GridField mField,
Object aValue)
mField - fieldaValue - value
public static ValuePreference start(GridField mField,
Object aValue,
String aDisplayValue)
mField - fieldaValue - valueaDisplayValue - display value
public static CMenuItem addMenu(ActionListener l,
JPopupMenu popupMenu)
.. add method
public void setField (MField mField)
{
m_mField = mField;
if (m_mField != null)
ValuePreference.addMenu (this, m_popupMenu);
} // setField
.. in actionPerformed add ..
if (e.getActionCommand().equals(ValuePreference.NAME))
{
ValuePreference.start (m_mField, getValue(), DisplayValue);
return;
}
l - listenerpopupMenu - menu
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListeneractionPerformed in class CDialoge - eventActionListener.actionPerformed(java.awt.event.ActionEvent)public int delete()
public void insert()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||