本文整理了Java中org.eclipse.swt.widgets.Button.setVisible()
方法的一些代码示例,展示了Button.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setVisible()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Button
类名称:Button
方法名:setVisible
暂无
代码示例来源:origin: pentaho/pentaho-kettle
@Override public void widgetSelected( SelectionEvent selectionEvent ) {
if ( wcSlaveServer.getText().equals( CLUSTERED ) ) {
defaultRunConfiguration.setClustered( true );
defaultRunConfiguration.setLocal( false );
defaultRunConfiguration.setRemote( false );
wbLogRemoteExecutionLocally.setVisible( true );
wbShowTransformations.setVisible( true );
wbSendResources.setVisible( false );
} else {
defaultRunConfiguration.setRemote( true );
defaultRunConfiguration.setLocal( false );
defaultRunConfiguration.setClustered( false );
defaultRunConfiguration.setServer( wcSlaveServer.getText() );
wbLogRemoteExecutionLocally.setVisible( false );
wbShowTransformations.setVisible( false );
wbSendResources.setVisible( true );
}
checkOKEnabled();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
defaultRunConfiguration.setRemote( true );
defaultRunConfiguration.setClustered( false );
wbSendResources.setVisible( true );
wbShowTransformations.setVisible( false );
wbLogRemoteExecutionLocally.setVisible( false );
} else {
defaultRunConfiguration.setClustered( true );
defaultRunConfiguration.setRemote( false );
wbSendResources.setVisible( false );
wbShowTransformations.setVisible( true );
wbLogRemoteExecutionLocally.setVisible( true );
代码示例来源:origin: caoxinyu/RedisClient
final boolean isKey = new ContainerKey(oldContainer).isKey();
if(isKey)
btnCheckButton1.setVisible(false);
else
btnCheckButton1.setVisible(true);
代码示例来源:origin: pentaho/pentaho-kettle
private void conditionReceivedDate() {
boolean activeReceivedDate =
!( MailConnectionMeta.getConditionDateByDesc( wConditionOnReceivedDate.getText() )
== MailConnectionMeta.CONDITION_DATE_IGNORE );
boolean useBetween =
( MailConnectionMeta.getConditionDateByDesc( wConditionOnReceivedDate.getText() )
== MailConnectionMeta.CONDITION_DATE_BETWEEN );
wlReadFrom.setVisible( activeReceivedDate );
wReadFrom.setVisible( activeReceivedDate );
open.setVisible( activeReceivedDate );
wlReadTo.setVisible( activeReceivedDate && useBetween );
wReadTo.setVisible( activeReceivedDate && useBetween );
opento.setVisible( activeReceivedDate && useBetween );
if ( !activeReceivedDate ) {
wReadFrom.setText( "" );
wReadTo.setText( "" );
wNegateReceivedDate.setSelection( false );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
private void conditionReceivedDate() {
boolean activeReceivedDate =
!( MailConnectionMeta.getConditionDateByDesc( wConditionOnReceivedDate.getText() )
== MailConnectionMeta.CONDITION_DATE_IGNORE );
boolean useBetween =
( MailConnectionMeta.getConditionDateByDesc( wConditionOnReceivedDate.getText() )
== MailConnectionMeta.CONDITION_DATE_BETWEEN );
wlReadFrom.setVisible( activeReceivedDate );
wReadFrom.setVisible( activeReceivedDate );
open.setVisible( activeReceivedDate );
wlReadTo.setVisible( activeReceivedDate && useBetween );
wReadTo.setVisible( activeReceivedDate && useBetween );
opento.setVisible( activeReceivedDate && useBetween );
if ( !activeReceivedDate ) {
wReadFrom.setText( "" );
wReadTo.setText( "" );
wNegateReceivedDate.setSelection( false );
}
}
代码示例来源:origin: pentaho/pentaho-kettle
fdSpacer.top = new FormAttachment( wlMessage, 15, SWT.BOTTOM );
spacer.setLayoutData( fdSpacer );
spacer.setVisible( false );
props.setLook( spacer );
代码示例来源:origin: pentaho/pentaho-kettle
spoonSupplier.get().getRepository() != null && spoonSupplier.get().getRepository().getRepositoryMeta().getId()
.equals( "PentahoEnterpriseRepository" );
wbPentaho.setVisible( connectedToPentahoServer );
if ( connectedToPentahoServer ) {
wbPentaho.setText( BaseMessages.getString( PKG, "DefaultRunConfigurationDialog.Label.Pentaho" ) );
wbSendResources.setSelection( defaultRunConfiguration.isSendResources() );
wbSendResources
.setVisible( !Utils.isEmpty( defaultRunConfiguration.getServer() ) && !defaultRunConfiguration.isClustered() );
props.setLook( wbSendResources );
wbSendResources.setText( BaseMessages.getString( PKG, "DefaultRunConfigurationDialog.Button.SendResources" ) );
wbLogRemoteExecutionLocally.setVisible( defaultRunConfiguration.isClustered() );
props.setLook( wbLogRemoteExecutionLocally );
wbLogRemoteExecutionLocally
wbShowTransformations.setVisible( defaultRunConfiguration.isClustered() );
props.setLook( wbShowTransformations );
wbShowTransformations
wbSendResources.setVisible( false );
wbShowTransformations.setVisible( true );
wbLogRemoteExecutionLocally.setVisible( true );
代码示例来源:origin: pentaho/pentaho-kettle
bfd.right = new FormAttachment( 95, 0 );
wSSL.setLayoutData( bfd );
wSSL.setVisible( true );
代码示例来源:origin: pentaho/pentaho-kettle
wFieldName.setVisible( evaluatepreviousRowField );
wlsuccessWhenSet.setVisible( evaluateVariable );
wSuccessWhenSet.setVisible( evaluateVariable );
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
/**
* Set the specified button's visibility.
* Fix for defect 190717.
* @param index The index of the button to be changed
* @param visible true if the button is to be shown, false if hidden
*/
public void setButtonVisible(int index, boolean visible) {
if (fButtons != null && index >= 0 && fButtons.length > index) {
fButtons[index].setVisible(visible);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.compare
private void handleCenterButtonSelection(boolean leftToRight) {
fLeftToRightButton.setVisible(false);
fRightToLeftButton.setVisible(false);
if (fButtonDiff != null) {
setCurrentDiff(fButtonDiff, false);
copy(fCurrentDiff, leftToRight, false);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench
/**
* Hide the button if hide is <code>true</code>.
*
* @param button
* @param hide
*/
private void hideButton(Button button, boolean hide) {
((GridData) button.getLayoutData()).exclude = hide;
button.setVisible(!hide);
button.setEnabled(!hide);
}
代码示例来源:origin: org.eclipse/org.eclipse.datatools.connectivity.ui
protected void setPingButtonVisible(boolean visible)
{
if (btnPing != null && !btnPing.isDisposed())
{
btnPing.setVisible(visible);
}
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.compare
@Override
protected void createMainButton(Composite parent) {
super.createMainButton(parent);
mainButton.setText(CompareMessages.CompareWithOtherResourceDialog_workspaceMainButton);
// temporarily hide this button. For more information about supporting for browsing workspace see bug 243744.
mainButton.setVisible(false);
}
代码示例来源:origin: BiglySoftware/BiglyBT
public void update() {
File folder = getFolder();
if (folder == null) {
Messages.setLanguageText(lblValue, "label.none.assigned");
} else {
lblValue.setText(folder.toString());
}
btnClear.setVisible(folder != null);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.pagedesigner
public void setVisible(boolean visible) {
super.setVisible(visible);
getApplyButton().setVisible(false);
getDefaultsButton().setVisible(false);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.pagedesigner
public void setVisible(boolean visible) {
super.setVisible(visible);
getApplyButton().setVisible(false);
getDefaultsButton().setVisible(false);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
private void updateAppearanceColorWidgets(String systemDefaultKey) {
if (systemDefaultKey == null) {
fAppearanceColorDefault.setSelection(false);
fAppearanceColorDefault.setVisible(false);
fAppearanceColorEditor.getButton().setEnabled(true);
} else {
boolean systemDefault= getPreferenceStore().getBoolean(systemDefaultKey);
fAppearanceColorDefault.setSelection(systemDefault);
fAppearanceColorDefault.setVisible(true);
fAppearanceColorEditor.getButton().setEnabled(!systemDefault);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.pagedesigner
public void setVisible(boolean visible) {
super.setVisible(visible);
getApplyButton().setVisible(false);
getDefaultsButton().setVisible(false);
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public void setVisible(boolean visible) {
super.setVisible(visible);
if (visible) {
doValidation(OVERVIEWSTATUS);
doValidation(ANTSTATUS);
fCheckbrowser.setVisible(!fFirstPage.getCustom());
}
}
内容来源于网络,如有侵权,请联系作者删除!