本文整理汇总了Java中org.pentaho.ui.xul.components.XulButton类的典型用法代码示例。如果您正苦于以下问题:Java XulButton类的具体用法?Java XulButton怎么用?Java XulButton使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XulButton类属于org.pentaho.ui.xul.components包,在下文中一共展示了XulButton类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setActive
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
public void setActive() {
document.getElementById( "config" ).setDisabled( false );
commitButton.setDisabled( false );
pullButton.setDisabled( false );
branchButton.setDisabled( false );
tagButton.setDisabled( false );
( (XulButton) document.getElementById( "refresh" ) ).setDisabled( false );
commitMessageTextbox.setReadonly( false );
authorNameTextbox.setReadonly( false );
// Depends on VCS type
pullButton.setLabel( BaseMessages.getString( PKG, vcs.getType() + ".Pull" ) );
((XulMenuitem) document.getElementById( "branch-checkout" )).setLabel( BaseMessages.getString( PKG, vcs.getType() + ".Checkout" ) );
((XulMenuitem) document.getElementById( "branch-merge" )).setLabel( BaseMessages.getString( PKG, vcs.getType() + ".Merge" ) );
((XulMenuitem) document.getElementById( "tag-checkout" )).setLabel( BaseMessages.getString( PKG, vcs.getType() + ".Checkout" ) );
((XulMenuitem) document.getElementById( "menuitem-checkout" )).setLabel( BaseMessages.getString( PKG, vcs.getType() + ".ContextMenu.Checkout" ) );
if ( vcs.getType().equals( IVCS.GIT ) ) {
pushButton.setDisabled( false );
document.getElementById( "branch-push" ).setDisabled( false );
document.getElementById( "tag-push" ).setDisabled( false );
document.getElementById( "menuitem-reset" ).setDisabled( false );
} else {
pushButton.setDisabled( true );
document.getElementById( "branch-push" ).setDisabled( true );
document.getElementById( "tag-push" ).setDisabled( true );
document.getElementById( "menuitem-reset" ).setDisabled( true );
}
}
示例2: enableButtons
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
public void enableButtons(boolean enableNew, boolean enableEdit, boolean enableRemove) {
XulButton bNew = (XulButton) document.getElementById("connections-new"); //$NON-NLS-1$
XulButton bEdit = (XulButton) document.getElementById("connections-edit"); //$NON-NLS-1$
XulButton bRemove = (XulButton) document.getElementById("connections-remove"); //$NON-NLS-1$
bNew.setDisabled(!enableNew);
bEdit.setDisabled(!enableEdit);
bRemove.setDisabled(!enableRemove);
}
示例3: enableButtons
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
public void enableButtons(boolean enableNew, boolean enableEdit, boolean enableRemove) {
XulButton bNew = (XulButton) document.getElementById("partitions-new"); //$NON-NLS-1$
XulButton bEdit = (XulButton) document.getElementById("partitions-edit"); //$NON-NLS-1$
XulButton bRemove = (XulButton) document.getElementById("partitions-remove"); //$NON-NLS-1$
bNew.setDisabled(!enableNew);
bEdit.setDisabled(!enableEdit);
bRemove.setDisabled(!enableRemove);
}
示例4: enableButtons
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
public void enableButtons(boolean enableNew, boolean enableEdit, boolean enableRemove) {
XulButton bNew = (XulButton) document.getElementById("clusters-new"); //$NON-NLS-1$
XulButton bEdit = (XulButton) document.getElementById("clusters-edit"); //$NON-NLS-1$
XulButton bRemove = (XulButton) document.getElementById("clusters-remove"); //$NON-NLS-1$
bNew.setDisabled(!enableNew);
bEdit.setDisabled(!enableEdit);
bRemove.setDisabled(!enableRemove);
}
示例5: enableButtons
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
public void enableButtons(boolean enableNew, boolean enableEdit, boolean enableRemove) {
XulButton bNew = (XulButton) document.getElementById("slaves-new"); //$NON-NLS-1$
XulButton bEdit = (XulButton) document.getElementById("slaves-edit"); //$NON-NLS-1$
XulButton bRemove = (XulButton) document.getElementById("slaves-remove"); //$NON-NLS-1$
bNew.setDisabled(!enableNew);
bEdit.setDisabled(!enableEdit);
bRemove.setDisabled(!enableRemove);
}
示例6: enableButtons
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
public void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) {
XulButton bNew = (XulButton) document.getElementById( "connections-new" );
XulButton bEdit = (XulButton) document.getElementById( "connections-edit" );
XulButton bRemove = (XulButton) document.getElementById( "connections-remove" );
bNew.setDisabled( !enableNew );
bEdit.setDisabled( !enableEdit );
bRemove.setDisabled( !enableRemove );
}
示例7: enableButtons
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
public void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) {
XulButton bNew = (XulButton) document.getElementById( "partitions-new" );
XulButton bEdit = (XulButton) document.getElementById( "partitions-edit" );
XulButton bRemove = (XulButton) document.getElementById( "partitions-remove" );
bNew.setDisabled( !enableNew );
bEdit.setDisabled( !enableEdit );
bRemove.setDisabled( !enableRemove );
}
示例8: enableButtons
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
public void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) {
XulButton bNew = (XulButton) document.getElementById( "clusters-new" );
XulButton bEdit = (XulButton) document.getElementById( "clusters-edit" );
XulButton bRemove = (XulButton) document.getElementById( "clusters-remove" );
bNew.setDisabled( !enableNew );
bEdit.setDisabled( !enableEdit );
bRemove.setDisabled( !enableRemove );
}
示例9: enableButtons
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
public void enableButtons( boolean enableNew, boolean enableEdit, boolean enableRemove ) {
XulButton bNew = (XulButton) document.getElementById( "slaves-new" );
XulButton bEdit = (XulButton) document.getElementById( "slaves-edit" );
XulButton bRemove = (XulButton) document.getElementById( "slaves-remove" );
bNew.setDisabled( !enableNew );
bEdit.setDisabled( !enableEdit );
bRemove.setDisabled( !enableRemove );
}
示例10: createBindings
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
private void createBindings() {
repositoryConfigDialog = (XulDialog) document.getElementById( "repository-config-dialog" );//$NON-NLS-1$
url = (XulTextbox) document.getElementById( "repository-url" );//$NON-NLS-1$
name = (XulTextbox) document.getElementById( "repository-name" );//$NON-NLS-1$
id = (XulTextbox) document.getElementById( "repository-id" );//$NON-NLS-1$
modificationComments = (XulCheckbox) document.getElementById( "repository-modification-comments" );//$NON-NLS-1$
okButton = (XulButton) document.getElementById( "repository-config-dialog_accept" ); //$NON-NLS-1$
bf.setBindingType( Type.BI_DIRECTIONAL );
bf.createBinding( model, "url", url, "value" );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( model, "name", name, "value" );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( model, "id", id, "value" );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( model, "modificationComments", modificationComments, "checked" );//$NON-NLS-1$ //$NON-NLS-2$
bf.setBindingType( Type.ONE_WAY );
bf.createBinding( model, "valid", okButton, "!disabled" );//$NON-NLS-1$ //$NON-NLS-2$
}
示例11: createBindings
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
@Override
protected void createBindings() {
super.createBindings();
roleListBox = (XulListbox) document.getElementById( "roles-list" );//$NON-NLS-1$
systemRoleListBox = (XulListbox) document.getElementById( "system-roles-list" );//$NON-NLS-1$
applyLogicalRolesButton = (XulButton) document.getElementById( "apply-action-permission" );//$NON-NLS-1$
applyLogicalSystemRolesButton = (XulButton) document.getElementById( "apply-system-role-action-permission" );//$NON-NLS-1$
logicalRolesBox = (XulVbox) document.getElementById( "role-action-permissions-vbox" );//$NON-NLS-1$
logicalSystemRolesBox = (XulVbox) document.getElementById( "system-role-action-permissions-vbox" );//$NON-NLS-1$
bf.setBindingType( Binding.Type.ONE_WAY );
// Action based security permissions
buttonConverter = new BindingConvertor<Integer, Boolean>() {
@Override
public Boolean sourceToTarget( Integer value ) {
if ( value != null && value >= 0 ) {
return false;
}
return true;
}
@Override
public Integer targetToSource( Boolean value ) {
// TODO Auto-generated method stub
return null;
}
};
bf.createBinding( roleListBox, "selectedIndex", applyLogicalRolesButton, "disabled", buttonConverter );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( systemRoleListBox, "selectedIndex", applyLogicalSystemRolesButton, "disabled", buttonConverter );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( absSecurity, "selectedRole", this, "selectedRoleChanged" );//$NON-NLS-1$ //$NON-NLS-2$
bf.createBinding( absSecurity, "selectedSystemRole", this, "selectedSystemRoleChanged" );//$NON-NLS-1$ //$NON-NLS-2$
}
示例12: setValid
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
protected void setValid(final boolean valid) {
XulButton nextButton = (XulButton) getDocument().getElementById(NEXT_BTN_ID);
nextButton.setDisabled(!valid);
}
示例13: getControls
import org.pentaho.ui.xul.components.XulButton; //导入依赖的package包/类
protected void getControls() {
// Not all of these controls are created at the same time.. that's OK, for now, just check
// each one for null before using.
dialogDeck = (XulDeck) document.getElementById( "dialog-panel-deck" );
deckOptionsBox = (XulListbox) document.getElementById( "deck-options-list" );
connectionBox = (XulListbox) document.getElementById( "connection-type-list" );
accessBox = (XulListbox) document.getElementById( "access-type-list" );
connectionNameBox = (XulTextbox) document.getElementById( "connection-name-text" );
hostNameBox = (XulTextbox) document.getElementById( "server-host-name-text" );
databaseNameBox = (XulTextbox) document.getElementById( "database-name-text" );
portNumberBox = (XulTextbox) document.getElementById( "port-number-text" );
userNameBox = (XulTextbox) document.getElementById( "username-text" );
passwordBox = (XulTextbox) document.getElementById( "password-text" );
dataTablespaceBox = (XulTextbox) document.getElementById( "data-tablespace-text" );
indexTablespaceBox = (XulTextbox) document.getElementById( "index-tablespace-text" );
serverInstanceBox = (XulTextbox) document.getElementById( "instance-text" );
serverNameBox = (XulTextbox) document.getElementById( "server-name-text" );
customUrlBox = (XulTextbox) document.getElementById( "custom-url-text" );
customDriverClassBox = (XulTextbox) document.getElementById( "custom-driver-class-text" );
languageBox = (XulTextbox) document.getElementById( "language-text" );
systemNumberBox = (XulTextbox) document.getElementById( "system-number-text" );
clientBox = (XulTextbox) document.getElementById( "client-text" );
doubleDecimalSeparatorCheck = (XulCheckbox) document.getElementById( "decimal-separator-check" );
resultStreamingCursorCheck = (XulCheckbox) document.getElementById( "result-streaming-check" );
webAppName = (XulTextbox) document.getElementById( "web-application-name-text" );
poolingCheck = (XulCheckbox) document.getElementById( "use-pool-check" );
clusteringCheck = (XulCheckbox) document.getElementById( "use-cluster-check" );
clusterParameterDescriptionLabel = (XulLabel) document.getElementById( "cluster-parameter-description-label" );
poolSizeLabel = (XulLabel) document.getElementById( "pool-size-label" );
poolSizeBox = (XulTextbox) document.getElementById( "pool-size-text" );
maxPoolSizeLabel = (XulLabel) document.getElementById( "max-pool-size-label" );
maxPoolSizeBox = (XulTextbox) document.getElementById( "max-pool-size-text" );
poolParameterTree = (XulTree) document.getElementById( "pool-parameter-tree" );
clusterParameterTree = (XulTree) document.getElementById( "cluster-parameter-tree" );
optionsParameterTree = (XulTree) document.getElementById( "options-parameter-tree" );
poolingDescription = (XulTextbox) document.getElementById( "pooling-description" );
poolingParameterDescriptionLabel = (XulLabel) document.getElementById( "pool-parameter-description-label" );
poolingDescriptionLabel = (XulLabel) document.getElementById( "pooling-description-label" );
supportBooleanDataType = (XulCheckbox) document.getElementById( "supports-boolean-data-type" );
supportTimestampDataType = (XulCheckbox) document.getElementById( "supports-timestamp-data-type" );
quoteIdentifiersCheck = (XulCheckbox) document.getElementById( "quote-identifiers-check" );
lowerCaseIdentifiersCheck = (XulCheckbox) document.getElementById( "force-lower-case-check" );
upperCaseIdentifiersCheck = (XulCheckbox) document.getElementById( "force-upper-case-check" );
preserveReservedCaseCheck = (XulCheckbox) document.getElementById( "preserve-reserved-case" );
strictBigNumberInterpretaion = (XulCheckbox) document.getElementById( "strict-bignum-interpretation" );
preferredSchemaName = (XulTextbox) document.getElementById( "preferred-schema-name-text" );
sqlBox = (XulTextbox) document.getElementById( "sql-text" );
useIntegratedSecurityCheck = (XulCheckbox) document.getElementById( "use-integrated-security-check" );
acceptButton = (XulButton) document.getElementById( "general-datasource-window_accept" );
cancelButton = (XulButton) document.getElementById( "general-datasource-window_cancel" );
testButton = (XulButton) document.getElementById( "test-button" );
noticeLabel = (XulLabel) document.getElementById( "notice-label" );
if ( portNumberBox != null && serverInstanceBox != null ) {
if ( Boolean.parseBoolean( serverInstanceBox.getAttributeValue( "shouldDisablePortIfPopulated" ) ) ) {
serverInstanceBox.addPropertyChangeListener( new PropertyChangeListener() {
@Override
public void propertyChange( PropertyChangeEvent evt ) {
if ( "value".equals( evt.getPropertyName() ) ) {
disablePortIfInstancePopulated();
}
}
} );
}
}
}