|
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
javax.swing.JComponent
javax.swing.JPanel
org.compiere.swing.CPanel
org.compiere.apps.ConfirmPanel
public final class ConfirmPanel
Application Confirm Panel.
if (e.getActionCommand().equals(ConfirmPanel.A_OK))
| 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 |
A_CANCEL
Action String Cancel |
static String |
A_CUSTOMIZE
Action String Customize |
static String |
A_DELETE
Action String Delete |
static String |
A_EXPORT
Action String Export |
static String |
A_HELP
Action String Help |
static String |
A_HISTORY
Action String History |
static String |
A_NEW
Action String New |
static String |
A_OK
Action String OK |
static String |
A_PATTRIBUTE
Action String PAttribute |
static String |
A_PRINT
Action String Print |
static String |
A_PROCESS
Action String Process |
static String |
A_REFRESH
Action String Refresh |
static String |
A_RESET
Action String Reset |
static String |
A_ZOOM
Action String Zoom |
static Insets |
s_insets
Standard Insets used |
| 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 | |
|---|---|
ConfirmPanel()
Create Confirmation Panel with OK Button |
|
ConfirmPanel(boolean withCancelButton)
Create Confirmation Panel with OK and Cancel Button |
|
ConfirmPanel(boolean withCancelButton,
boolean withRefreshButton,
boolean withResetButton,
boolean withCustomizeButton,
boolean withHistoryButton,
boolean withZoomButton,
boolean withText)
Create Confirmation Panel with different buttons |
|
| Method Summary | |
|---|---|
void |
addActionListener(ActionListener al)
Add Action Listener
if (e.getActionCommand().equals(ConfirmPanel.A_OK))
|
JButton |
addButton(JButton button)
Add Button to left side of confirmPanel |
CButton |
addButton(String action,
String toolTipText,
Icon icon)
Add Button to left side of confirmPanel |
void |
addComponent(Component button)
Add Button to left side of confirmPanel |
static CButton |
createCancelButton(boolean withText)
Create Cancel Button wlth Standard text |
static CButton |
createCancelButton(String text)
Create Cancel Button wlth label text and register ESC as KeyStroke |
static CButton |
createCustomizeButton(boolean withText)
Create Customize Button wlth Standard text |
static CButton |
createCustomizeButton(String text)
Create Customize Button wlth label text |
static CButton |
createDeleteButton(boolean withText)
Create Delete Button with Standard text |
static CButton |
createDeleteButton(String text)
Create Delete Button with label text - F3 |
static CButton |
createExportButton(boolean withText)
Create Export Button wlth Standard text |
static CButton |
createExportButton(String text)
Create Export Button wlth label text |
static CButton |
createHelpButton(boolean withText)
Create Help Button wlth Standard text |
static CButton |
createHelpButton(String text)
Create Help Button wlth label text |
static CButton |
createHistoryButton(boolean withText)
Create History Button wlth Standard text |
static CButton |
createHistoryButton(String text)
Create History Button wlth label text |
static CButton |
createNewButton(boolean withText)
Create New Button with Standard text |
static CButton |
createNewButton(String text)
Create New Button with label text - F2 |
static CButton |
createOKButton(boolean withText)
Create OK Button with Standard text |
static CButton |
createOKButton(String text)
Create OK Button with label text and F4 Shortcut |
static CButton |
createPAttributeButton(boolean withText)
Create Product Attribute Button with Standard text |
static CButton |
createPAttributeButton(String text)
Create Product Attribute Button with label text |
static CButton |
createPrintButton(boolean withText)
Create Print Button wlth Standard text |
static CButton |
createPrintButton(String text)
Create Print Button wlth label text |
static CButton |
createProcessButton(boolean withText)
Create Process Button wlth Standard text |
static CButton |
createProcessButton(String text)
Create Process Button wlth label text Shift-F4 |
static CButton |
createRefreshButton(boolean withText)
Create Refresh Button wlth Standard text |
static CButton |
createRefreshButton(String text)
Create Refresh Button wlth label text and F5 |
static CButton |
createResetButton(boolean withText)
Create Reset Button wlth Standard text |
static CButton |
createResetButton(String text)
Create Reset Button wlth label text |
static CButton |
createZoomButton(boolean withText)
Create Zoom Button wlth Standard text |
static CButton |
createZoomButton(String text)
Create Zoom Button wlth label text |
CButton |
getCancelButton()
Get Cancel Button |
CButton |
getCustomizeButton()
Get Customize Button |
CButton |
getHistoryButton()
Get History Button |
CButton |
getOKButton()
Get OK Button |
CButton |
getRefreshButton()
Get Refresh Button |
CButton |
getResetButton()
Get Reset Button |
CButton |
getZoomButton()
Get Zoom Button |
boolean |
isCancelVisible()
Is Cancel Visible |
boolean |
isOKVisible()
Is OK Visible |
void |
setCancelVisible(boolean value)
Show Cancel button |
void |
setEnabled(boolean enabled)
Enable all components |
void |
setOKVisible(boolean value)
Show OK button |
| Methods inherited from class org.compiere.swing.CPanel |
|---|
getBackgroundColor, getTabLevel, setBackground, setBackgroundColor, setTabLevel, toString |
| 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 A_OK
public static final String A_CANCEL
public static final String A_REFRESH
public static final String A_RESET
public static final String A_CUSTOMIZE
public static final String A_HISTORY
public static final String A_ZOOM
public static final String A_PROCESS
public static final String A_PRINT
public static final String A_EXPORT
public static final String A_HELP
public static final String A_DELETE
public static final String A_PATTRIBUTE
public static final String A_NEW
public static Insets s_insets
| Constructor Detail |
|---|
public ConfirmPanel()
public ConfirmPanel(boolean withCancelButton)
withCancelButton - with cancel
public ConfirmPanel(boolean withCancelButton,
boolean withRefreshButton,
boolean withResetButton,
boolean withCustomizeButton,
boolean withHistoryButton,
boolean withZoomButton,
boolean withText)
withCancelButton - with cancelwithRefreshButton - with refreshwithResetButton - with resetwithCustomizeButton - with customizewithHistoryButton - with historywithZoomButton - with zoomwithText - with text| Method Detail |
|---|
public static final CButton createOKButton(String text)
text - text
public static final CButton createOKButton(boolean withText)
withText - with text
public static final CButton createCancelButton(String text)
text - text
public static final CButton createCancelButton(boolean withText)
withText - with text
public static final CButton createRefreshButton(String text)
text - text
public static final CButton createRefreshButton(boolean withText)
withText - with text
public static final CButton createResetButton(String text)
text - text
public static final CButton createResetButton(boolean withText)
withText - with text
public static final CButton createCustomizeButton(String text)
text - text
public static final CButton createCustomizeButton(boolean withText)
withText - with text
public static final CButton createHistoryButton(String text)
text - text
public static final CButton createHistoryButton(boolean withText)
withText - with text
public static final CButton createZoomButton(String text)
text - text
public static final CButton createZoomButton(boolean withText)
withText - with text
public static final CButton createProcessButton(String text)
text - text
public static final CButton createProcessButton(boolean withText)
withText - with text
public static final CButton createPrintButton(String text)
text - text
public static final CButton createPrintButton(boolean withText)
withText - with text
public static final CButton createHelpButton(String text)
text - text
public static final CButton createHelpButton(boolean withText)
withText - with text
public static final CButton createExportButton(String text)
text - text
public static final CButton createExportButton(boolean withText)
withText - with text
public static final CButton createDeleteButton(String text)
text - text
public static final CButton createDeleteButton(boolean withText)
withText - with text
public static final CButton createPAttributeButton(boolean withText)
withText - with text
public static final CButton createPAttributeButton(String text)
text - text
public static final CButton createNewButton(boolean withText)
withText - with text
public static final CButton createNewButton(String text)
text - text
public void addComponent(Component button)
button - button
public CButton addButton(String action,
String toolTipText,
Icon icon)
action - action commandtoolTipText - tool tip texticon - icon
public JButton addButton(JButton button)
button - button
public CButton getOKButton()
public CButton getCancelButton()
public void setOKVisible(boolean value)
value - true for visiblepublic boolean isOKVisible()
public void setCancelVisible(boolean value)
value - trie for visiblepublic boolean isCancelVisible()
public CButton getResetButton()
public CButton getCustomizeButton()
public CButton getHistoryButton()
public CButton getZoomButton()
public CButton getRefreshButton()
public void addActionListener(ActionListener al)
if (e.getActionCommand().equals(ConfirmPanel.A_OK))
al - listenerpublic void setEnabled(boolean enabled)
setEnabled in class JComponentenabled - trie if enabled
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||