Search in sources :

Example 21 with CButton

use of org.compiere.swing.CButton in project lar_361 by comitsrl.

the class PosSubPanel method createButton.

// getButtonAction
/**
 * 	Create Standard Button
 *	@param text text
 *	@return button
 */
protected CButton createButton(String text) {
    // if (text.indexOf("<html>") == -1)
    // text = "<html><h4>" + text + "</h4></html>";
    CButton button = new CButton(text);
    button.addActionListener(this);
    button.setPreferredSize(new Dimension(WIDTH, HEIGHT));
    button.setMinimumSize(getPreferredSize());
    button.setMaximumSize(getPreferredSize());
    button.setFocusable(false);
    return button;
}
Also used : Dimension(java.awt.Dimension) CButton(org.compiere.swing.CButton)

Example 22 with CButton

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

the class ConfirmPanel method createHelpButton.

//	createPrintButton
/************************
	 *	Create Help Button wlth label text
	 *  @param text text
	 *  @return Button
	 */
public static final CButton createHelpButton(String text) {
    AppsAction aa = new AppsAction(A_HELP, KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0), text);
    CButton button = (CButton) aa.getButton();
    button.setMargin(s_insets);
    return button;
}
Also used : CButton(org.compiere.swing.CButton)

Example 23 with CButton

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

the class ConfirmPanel method createPrintButton.

//	createProcessButton
/************************
	 *	Create Print Button wlth label text
	 *  @param text text
	 *  @return button
	 */
public static final CButton createPrintButton(String text) {
    AppsAction aa = new AppsAction(A_PRINT, KeyStroke.getKeyStroke(KeyEvent.VK_F12, 0), text);
    CButton button = (CButton) aa.getButton();
    button.setMargin(s_insets);
    return button;
}
Also used : CButton(org.compiere.swing.CButton)

Example 24 with CButton

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

the class ConfirmPanel method createRefreshButton.

//	createCancelButton
/************************
	 *	Create Refresh Button wlth label text and F5
	 *  @param text text
	 *  @return button
	 */
public static final CButton createRefreshButton(String text) {
    AppsAction aa = new AppsAction(A_REFRESH, KeyStroke.getKeyStroke(KeyEvent.VK_F5, 0), text);
    CButton button = (CButton) aa.getButton();
    button.setMargin(s_insets);
    return button;
}
Also used : CButton(org.compiere.swing.CButton)

Example 25 with CButton

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

the class ConfirmPanel method createZoomButton.

//	createHistoryButton
/************************
	 *	Create Zoom Button wlth label text
	 *  @param text text
	 *  @return button
	 */
public static final CButton createZoomButton(String text) {
    AppsAction aa = new AppsAction(A_ZOOM, null, 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