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;
}
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"));
}
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;
}
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;
}
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;
}
Aggregations