Search in sources :

Example 11 with CButton

use of org.compiere.swing.CButton in project adempiere by adempiere.

the class ConfirmPanel method addButton.

//  addButton
/**
	 *  Add Button to left side of confirmPanel
	 *  @param action action command
	 *  @param toolTipText tool tip text
	 *  @param icon icon
	 *  @return JButton
	 */
public CButton addButton(String action, String toolTipText, Icon icon) {
    AppsAction aa = new AppsAction(action, null, toolTipText);
    CButton b = (CButton) aa.getButton();
    //			new DialogButton (action, toolTipText, icon);
    addComponent(b);
    return b;
}
Also used : CButton(org.compiere.swing.CButton)

Example 12 with CButton

use of org.compiere.swing.CButton in project adempiere by adempiere.

the class ConfirmPanel method createHistoryButton.

//	createCustomizeButton
/************************
	 *	Create History Button wlth label text
	 *  @param text text
	 *  @return button
	 */
public static final CButton createHistoryButton(String text) {
    AppsAction aa = new AppsAction(A_HISTORY, KeyStroke.getKeyStroke(KeyEvent.VK_F9, 0), text);
    CButton button = (CButton) aa.getButton();
    button.setMargin(s_insets);
    return button;
//	Env.getImageIcon("HistoryX24.gif"));
}
Also used : CButton(org.compiere.swing.CButton)

Example 13 with CButton

use of org.compiere.swing.CButton in project adempiere by adempiere.

the class ConfirmPanel method createDeleteButton.

//	createExportButton
/************************
	 *	Create Delete Button with label text - F3
	 *  @param text text
	 *  @return Delete Button
	 */
public static final CButton createDeleteButton(String text) {
    AppsAction aa = new AppsAction(A_DELETE, KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0), text);
    CButton button = (CButton) aa.getButton();
    button.setMargin(s_insets);
    return button;
}
Also used : CButton(org.compiere.swing.CButton)

Example 14 with CButton

use of org.compiere.swing.CButton in project adempiere by adempiere.

the class ConfirmPanel method createOKButton.

/**
	 *	Create OK Button with label text and F4 Shortcut
	 *  @param text text
	 *  @return OK Button
	 */
public static final CButton createOKButton(String text) {
    AppsAction aa = new AppsAction(A_OK, KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), text);
    CButton button = (CButton) aa.getButton();
    button.setMargin(s_insets);
    button.setDefaultCapable(true);
    return button;
}
Also used : CButton(org.compiere.swing.CButton)

Example 15 with CButton

use of org.compiere.swing.CButton in project adempiere by adempiere.

the class ConfirmPanel method createProcessButton.

//	createZoomButton
/************************
	 *	Create Process Button wlth label text Shift-F4
	 *  @param text text
	 *  @return button
	 */
public static final CButton createProcessButton(String text) {
    AppsAction aa = new AppsAction(A_PROCESS, KeyStroke.getKeyStroke(KeyEvent.VK_F4, KeyEvent.SHIFT_MASK), text);
    CButton button = (CButton) aa.getButton();
    button.setMargin(s_insets);
    return button;
}
Also used : CButton(org.compiere.swing.CButton)

Aggregations

CButton (org.compiere.swing.CButton)40 Insets (java.awt.Insets)11 Dimension (java.awt.Dimension)9 AppsAction (org.compiere.apps.AppsAction)6 CPanel (org.compiere.swing.CPanel)5 GridBagConstraints (java.awt.GridBagConstraints)3 ImageIcon (javax.swing.ImageIcon)3 VLookup (org.compiere.grid.ed.VLookup)3 MLookup (org.compiere.model.MLookup)3 BorderLayout (java.awt.BorderLayout)2 Color (java.awt.Color)2 Font (java.awt.Font)2 Timestamp (java.sql.Timestamp)2 HashMap (java.util.HashMap)2 JScrollPane (javax.swing.JScrollPane)2 MigLayout (net.miginfocom.swing.MigLayout)2 VString (org.compiere.grid.ed.VString)2 MImage (org.compiere.model.MImage)2 MPOSKey (org.compiere.model.MPOSKey)2 MPOSKeyLayout (org.compiere.model.MPOSKeyLayout)2