public class CustomCommandButton extends Control
Example
GridWebBean GridWeb1=ExtPage.getInstance().getBean();
CustomCommandButton button = new CustomCommandButton();
button.setCommand("MyCommand");
button.setImageUrl("images/button1.gif");
GridWeb1.getCustomCommandButtons().add(button);
| Constructor and Description |
|---|
CustomCommandButton()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClientClickEvent()
Gets the click event handler at client side.
|
java.lang.String |
getCommand()
Gets the command name.
|
int |
getCommandType()
Gets the rendering type of the command.
|
boolean |
getDiscardInput()
Indicates whether to discard user input at client browser when user click this button.
|
java.lang.String |
getImageUrl()
Gets the command button's image url.
|
java.lang.String |
getText()
Gets the alternative text of the command button.
|
java.lang.String |
getToolTip()
Gets the tooltip of the command button.
|
Unit |
getWidth()
Width of the button.
|
void |
setClientClickEvent(java.lang.String value)
Sets the click event handler at client side.
|
void |
setCommand(java.lang.String value)
Sets the command name.
|
void |
setCommandType(int value)
Sets the rendering type of the command.
|
void |
setDiscardInput(boolean value)
Indicates whether to discard user input at client browser when user click this button.
|
void |
setImageUrl(java.lang.String value)
Sets the command button's image url.
|
void |
setText(java.lang.String value)
Sets the alternative text of the command button.
|
void |
setToolTip(java.lang.String value)
Sets the tooltip of the command button.
|
void |
setWidth(Unit value)
Width of the button.
|
getUniqueID, getVisible, setVisiblepublic int getCommandType()
public void setCommandType(int value)
public java.lang.String getCommand()
public void setCommand(java.lang.String value)
public java.lang.String getText()
public void setText(java.lang.String value)
public java.lang.String getImageUrl()
public void setImageUrl(java.lang.String value)
public java.lang.String getToolTip()
public void setToolTip(java.lang.String value)
public java.lang.String getClientClickEvent()
public void setClientClickEvent(java.lang.String value)
public Unit getWidth()
public void setWidth(Unit value)
public boolean getDiscardInput()
public void setDiscardInput(boolean value)
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.