|
Compiere Looks 1.2.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.AbstractButton
|
+--javax.swing.JButton
|
+--org.compiere.swing.CButton
Compiere Button supporting colored Background
| Field Summary |
| 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 javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
CButton()
Creates a button with no set text or icon. |
|
CButton(Action a)
Creates a button where properties are taken from the Action supplied. |
|
CButton(Icon icon)
Creates a button with an icon. |
|
CButton(String text)
Creates a button with text. |
|
CButton(String text,
Icon icon)
Creates a button with initial text and an icon. |
|
| Method Summary | |
CompiereColor |
getBackgroundColor()
Get Background |
String |
getDisplay()
Return Display Value |
Object |
getValue()
Return Editor value |
boolean |
isMandatory()
Is Field mandatory |
boolean |
isReadWrite()
Is it possible to edit |
void |
setBackground(boolean error)
Set Background - NOP |
void |
setBackground(Color bg)
Set Background - Differentiates between system & user call. |
void |
setBackgroundColor()
Set Standard Background |
void |
setBackgroundColor(CompiereColor bg)
Set Background |
void |
setMandatory(boolean mandatory)
Set Editor Mandatory |
void |
setReadWrite(boolean rw)
Enable Editor |
void |
setValue(Object value)
Set Editor to value |
| Methods inherited from class javax.swing.JButton |
configurePropertiesFromAction, getAccessibleContext, getUIClassID, isDefaultButton, isDefaultCapable, paramString, removeNotify, setDefaultCapable, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.swing.CEditor |
setVisible |
| Constructor Detail |
public CButton()
public CButton(Icon icon)
icon - the Icon image to display on the buttonpublic CButton(String text)
text - the text of the buttonpublic CButton(Action a)
Action supplied.
a - the Action used to specify the new button
public CButton(String text,
Icon icon)
text - the text of the buttonicon - the Icon image to display on the button| Method Detail |
public void setBackground(Color bg)
setBackground in class JComponentbg - background colorpublic void setBackground(boolean error)
setBackground in interface CEditorerror - errorpublic void setBackgroundColor()
public void setBackgroundColor(CompiereColor bg)
bg - CompiereColor for Background, if null set standard backgroundpublic CompiereColor getBackgroundColor()
public void setMandatory(boolean mandatory)
setMandatory in interface CEditormandatory - true, if you have to enter datapublic boolean isMandatory()
isMandatory in interface CEditorpublic void setReadWrite(boolean rw)
setReadWrite in interface CEditorrw - true, if you can enter/select datapublic boolean isReadWrite()
isReadWrite in interface CEditorpublic void setValue(Object value)
setValue in interface CEditorvalue - value of the editorpublic Object getValue()
getValue in interface CEditorpublic String getDisplay()
getDisplay in interface CEditor
|
Compiere Looks 1.2.1 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||