Package org.adempiere.webui.factory
Class ButtonFactory
java.lang.Object
org.adempiere.webui.factory.ButtonFactory
Factory class to create button with consistent look and feel
- Author:
- hengsin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Button
createButton
(String label, String image, String tooltiptext) static Button
createNamedButton
(String name) Create named button with default stylestatic Button
createNamedButton
(String name, boolean withText, boolean withImage) static final boolean
static final boolean
-
Constructor Details
-
ButtonFactory
public ButtonFactory()
-
-
Method Details
-
isWithText
public static final boolean isWithText()- Returns:
- true if button should have text label
-
isWithImage
public static final boolean isWithImage()- Returns:
- true if button should include an image icon
-
createNamedButton
Create named button with default style- Parameters:
name
-- Returns:
- new button instance
-
createNamedButton
- Parameters:
name
- button name. If withText is true, the name will be used to lookup the button label from ad_messagewithText
- text buttonwithImage
- image button- Returns:
- new button instance
-
createButton
- Parameters:
label
-image
-tooltiptext
-- Returns:
- new button instance
-