• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java XulTextbox类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.pentaho.ui.xul.components.XulTextbox的典型用法代码示例。如果您正苦于以下问题:Java XulTextbox类的具体用法?Java XulTextbox怎么用?Java XulTextbox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



XulTextbox类属于org.pentaho.ui.xul.components包,在下文中一共展示了XulTextbox类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createBindings

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
private void createBindings() {
  XulLabel pathLabel = (XulLabel) document.getElementById( "path" );
  XulLabel branchLabel = (XulLabel) document.getElementById( "branchLabel" );
  XulTextbox diffText = (XulTextbox) document.getElementById( "diff" );
  authorNameTextbox = (XulTextbox) document.getElementById( "author-name" );
  commitMessageTextbox = (XulTextbox) document.getElementById( "commit-message" );

  bf.setDocument( this.getXulDomContainer().getDocumentRoot() );
  bf.setBindingType( Binding.Type.ONE_WAY );
  bf.createBinding( this, "path", pathLabel, "value" );
  branchBinding = bf.createBinding( this, "branch", branchLabel, "value" );
  diffBinding = bf.createBinding( this, "diff", diffText, "value" );
  revisionBinding = bf.createBinding( this, "revisions", revisionTable, "elements" );
  changedBinding = bf.createBinding( this, "changedFiles", changedTable, "elements" );

  bf.createBinding( revisionTable, "selectedItems", this, "selectedRevisions" );
  bf.createBinding( changedTable, "selectedItems", this, "selectedChangedFiles" );

  bf.setBindingType( Binding.Type.BI_DIRECTIONAL );
  bf.createBinding( this, "authorName", authorNameTextbox, "value" );
  bf.createBinding( this, "commitMessage", commitMessageTextbox, "value" );
}
 
开发者ID:HiromuHota,项目名称:pdi-git-plugin,代码行数:23,代码来源:GitController.java


示例2: getControls

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
@Override
protected void getControls() {
  
  super.getControls();
  
  XulTextbox[] boxes = new XulTextbox[] {hostNameBox, databaseNameBox, portNumberBox, userNameBox, passwordBox,
      customDriverClassBox, customUrlBox, dataTablespaceBox, indexTablespaceBox, poolSizeBox, maxPoolSizeBox,
      languageBox, systemNumberBox, clientBox};

  for (int i = 0; i < boxes.length; i++) {
    XulTextbox xulTextbox = boxes[i];
    if ((xulTextbox != null) && (xulTextbox instanceof ExtTextbox)){
      ExtTextbox ext = (ExtTextbox)xulTextbox;
      ext.setVariableSpace(databaseMeta);
    }
  }
  
  XulTree[] trees = new XulTree[] {poolParameterTree, clusterParameterTree, optionsParameterTree};

  for (int i = 0; i < trees.length; i++) {
    XulTree xulTree = trees[i];
    if (xulTree != null){
      xulTree.setData(databaseMeta);
    }
  }
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:27,代码来源:DataOverrideHandler.java


示例3: browse

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
public void browse() {

    try {
      XulTextbox filename = (XulTextbox) document.getElementById( "keytab" );

      XulFileDialog dialog = (XulFileDialog) document.createElement( "filedialog" );
      XulFileDialog.RETURN_CODE retval = dialog.showOpenDialog();

      if ( retval == XulFileDialog.RETURN_CODE.OK ) {
        File file = (File) dialog.getFile();
        filename.setValue( file.getAbsolutePath() );
      }

    } catch ( XulException e ) {
      log.logError( resourceBundle.getString( "error.file_browse" ), e );
    }

  }
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:19,代码来源:AuthProviderController.java


示例4: testCopyToClipboard

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
/**
 * Tests all of the copy* methods.
 */
@Test
public void testCopyToClipboard() throws Exception {
  final XulTextbox textbox = context.mock(XulTextbox.class);
  final XulWindow window = context.mock(XulWindow.class);
  final String stringToCopy = "ignored"; //$NON-NLS-1$
  context.checking(new Expectations() {
    {
      exactly(3).of(doc).getElementById(with(any(String.class)));
      will(returnValue(textbox));
      exactly(3).of(textbox).getValue();
      will(returnValue(stringToCopy));
      exactly(3).of(doc).getRootElement();
      will(returnValue(window));
      exactly(3).of(window).copy(with(equal(stringToCopy)));
    }
  });
  controller.copyDdlToClipboard();
  controller.copyDmlToClipboard();
  controller.copyToClipboardMultiDimPreview();
}
 
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:24,代码来源:ExportHandlerTest.java


示例5: init

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
public void init() {
	workingStepname = stepname;
	
	metaMapper = new RulesMetaMapper();
	metaMapper.loadMeta((RulesMeta)baseStepMeta);
	
	// Set dialog values
	((XulTextbox)document.getElementById("step-name")).setValue(getStepName());
	((XulTextbox)document.getElementById("rule-file")).setValue(metaMapper.getRuleFile());
	((XulTextbox)document.getElementById("rule-definition")).setValue(metaMapper.getRuleDefinition());
	((XulTree)document.getElementById("fields-table")).setElements(metaMapper.getColumnList());

	// Set the initial dialog state
	if(metaMapper.getRuleDefinition() != null && !metaMapper.getRuleDefinition().equals("")) {
		setRuleSource("definition");
		((XulRadio)document.getElementById("rule-definition-radio-button")).setSelected(true);
	} else {
		setRuleSource("file");
		((XulRadio)document.getElementById("rule-file-radio-button")).setSelected(true);
	}
	
	// Bind data objects to UI
	bf.setBindingType(Binding.Type.ONE_WAY);
    try {
      bf.createBinding("step-name", "value", this, "stepName");
      bf.createBinding("rule-file", "value", metaMapper, "ruleFile");
      bf.createBinding("rule-definition", "value", metaMapper, "ruleDefinition");
      bf.createBinding(metaMapper.getColumnList(), "children", "fields-table", "elements").fireSourceChanged();
      // TODO: Add converter to clear out opposing text box
      bf.createBinding("rule-file-radio-button", "selected", "rule-file", "!disabled").fireSourceChanged();
      bf.createBinding("rule-file-radio-button", "selected", "rule-definition", "disabled").fireSourceChanged();
      
      bf.createBinding("rule-definition-radio-button", "selected", "rule-definition", "!disabled").fireSourceChanged();
      bf.createBinding("rule-definition-radio-button", "selected", "rule-file", "disabled").fireSourceChanged();
    } catch (Exception e) {
      e.printStackTrace();
    }
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:39,代码来源:RulesDialog.java


示例6: addToolBar

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
protected void addToolBar() {

    try {
      XulLoader loader = new SwtXulLoader();
      loader.setSettingsManager(XulSpoonSettingsManager.getInstance());
      ResourceBundle bundle = GlobalMessages.getBundle("org/pentaho/di/ui/spoon/messages/messages");
      XulDomContainer xulDomContainer = loader.loadXul(XUL_FILE_BROWSER_TOOLBAR, bundle);
      xulDomContainer.addEventHandler(this);
      toolbar = (XulToolbar) xulDomContainer.getDocumentRoot().getElementById("nav-toolbar");

      @SuppressWarnings("unused")
      ToolBar swtToolBar = (ToolBar) toolbar.getManagedObject();

      // Add a URL

      back = (XulToolbarbutton) toolbar.getElementById("browse-back");
      back.setDisabled(true);
      forward = (XulToolbarbutton) toolbar.getElementById("browse-forward");
      forward.setLabel(BaseMessages.getString(PKG, "SpoonBrowser.Dialog.Forward"));
      forward.setDisabled(false);
      location = (XulTextbox) toolbar.getElementById("browser-address");
      Control toolbarControl = (Control) toolbar.getManagedObject();
      toolbarControl.setLayoutData(new FormData());
      toolbarControl.setParent(composite);
    } catch (Exception e) {
      e.printStackTrace();
      new ErrorDialog(shell, BaseMessages.getString(PKG, "Spoon.Exception.ErrorReadingXULFile.Title"), BaseMessages.getString(PKG, "Spoon.Exception.ErrorReadingXULFile.Message", XUL_FILE_BROWSER_TOOLBAR), e);
    }
  }
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:30,代码来源:SpoonBrowser.java


示例7: init

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
public void init() {
  workingStepname = stepname;
  
  metaMapper = new RulesAccumulatorMetaMapper();
  metaMapper.loadMeta((RulesAccumulatorMeta)baseStepMeta);
  
  // Set dialog values
  ((XulTextbox)document.getElementById("step-name")).setValue(getStepName());
  ((XulTextbox)document.getElementById("rule-file")).setValue(metaMapper.getRuleFile());
  ((XulTextbox)document.getElementById("rule-definition")).setValue(metaMapper.getRuleDefinition());
  ((XulTree)document.getElementById("fields-table")).setElements(metaMapper.getColumnList());

  // Set the initial dialog state
  if(metaMapper.getRuleDefinition() != null && !metaMapper.getRuleDefinition().equals("")) {
    setRuleSource("definition");
    ((XulRadio)document.getElementById("rule-definition-radio-button")).setSelected(true);
  } else {
    setRuleSource("file");
    ((XulRadio)document.getElementById("rule-file-radio-button")).setSelected(true);
  }
  
  // Bind data objects to UI
  bf.setBindingType(Binding.Type.ONE_WAY);
    try {
      bf.createBinding("step-name", "value", this, "stepName");
      bf.createBinding("rule-file", "value", metaMapper, "ruleFile");
      bf.createBinding("rule-definition", "value", metaMapper, "ruleDefinition");
      bf.createBinding(metaMapper.getColumnList(), "children", "fields-table", "elements").fireSourceChanged();
      // TODO: Add converter to clear out opposing text box
      bf.createBinding("rule-file-radio-button", "selected", "rule-file", "!disabled").fireSourceChanged();
      bf.createBinding("rule-file-radio-button", "selected", "rule-definition", "disabled").fireSourceChanged();
      
      bf.createBinding("rule-definition-radio-button", "selected", "rule-definition", "!disabled").fireSourceChanged();
      bf.createBinding("rule-definition-radio-button", "selected", "rule-file", "disabled").fireSourceChanged();
    } catch (Exception e) {
      e.printStackTrace();
    }
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:39,代码来源:RulesAccumulatorDialog.java


示例8: init

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
public void init() {
	workingStepname = stepname;
	
	metaMapper = new RulesExecutorMetaMapper();
	metaMapper.loadMeta((RulesExecutorMeta)baseStepMeta);
	
	// Set dialog values
	((XulTextbox)document.getElementById("step-name")).setValue(getStepName());
	((XulTextbox)document.getElementById("rule-file")).setValue(metaMapper.getRuleFile());
	((XulTextbox)document.getElementById("rule-definition")).setValue(metaMapper.getRuleDefinition());
	((XulTree)document.getElementById("fields-table")).setElements(metaMapper.getColumnList());

	// Set the initial dialog state
	if(metaMapper.getRuleDefinition() != null && !metaMapper.getRuleDefinition().equals("")) {
		setRuleSource("definition");
		((XulRadio)document.getElementById("rule-definition-radio-button")).setSelected(true);
	} else {
		setRuleSource("file");
		((XulRadio)document.getElementById("rule-file-radio-button")).setSelected(true);
	}
	
	// Bind data objects to UI
	bf.setBindingType(Binding.Type.ONE_WAY);
    try {
      bf.createBinding("step-name", "value", this, "stepName");
      bf.createBinding("rule-file", "value", metaMapper, "ruleFile");
      bf.createBinding("rule-definition", "value", metaMapper, "ruleDefinition");
      bf.createBinding(metaMapper.getColumnList(), "children", "fields-table", "elements").fireSourceChanged();
      // TODO: Add converter to clear out opposing text box
      bf.createBinding("rule-file-radio-button", "selected", "rule-file", "!disabled").fireSourceChanged();
      bf.createBinding("rule-file-radio-button", "selected", "rule-definition", "disabled").fireSourceChanged();
      
      bf.createBinding("rule-definition-radio-button", "selected", "rule-definition", "!disabled").fireSourceChanged();
      bf.createBinding("rule-definition-radio-button", "selected", "rule-file", "disabled").fireSourceChanged();
    } catch (Exception e) {
      e.printStackTrace();
    }
}
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:39,代码来源:RulesExecutorDialog.java


示例9: addToolBar

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
protected void addToolBar() {

    try {
      XulLoader loader = new KettleXulLoader();
      loader.setSettingsManager( XulSpoonSettingsManager.getInstance() );
      ResourceBundle bundle = GlobalMessages.getBundle( "org/pentaho/di/ui/spoon/messages/messages" );
      XulDomContainer xulDomContainer = loader.loadXul( XUL_FILE_BROWSER_TOOLBAR, bundle );
      xulDomContainer.addEventHandler( this );
      toolbar = (XulToolbar) xulDomContainer.getDocumentRoot().getElementById( "nav-toolbar" );

      @SuppressWarnings( "unused" )
      ToolBar swtToolBar = (ToolBar) toolbar.getManagedObject();
      spoon.props.setLook( swtToolBar, Props.WIDGET_STYLE_TOOLBAR );

      // Add a URL

      back = (XulToolbarbutton) toolbar.getElementById( "browse-back" );
      back.setDisabled( true );
      forward = (XulToolbarbutton) toolbar.getElementById( "browse-forward" );
      forward.setLabel( BaseMessages.getString( PKG, "SpoonBrowser.Dialog.Forward" ) );
      forward.setDisabled( false );
      location = (XulTextbox) toolbar.getElementById( "browser-address" );
      Control toolbarControl = (Control) toolbar.getManagedObject();
      toolbarControl.setLayoutData( new FormData() );
      toolbarControl.setParent( composite );
    } catch ( Exception e ) {
      e.printStackTrace();
      new ErrorDialog(
        shell, BaseMessages.getString( PKG, "Spoon.Exception.ErrorReadingXULFile.Title" ), BaseMessages
          .getString( PKG, "Spoon.Exception.ErrorReadingXULFile.Message", XUL_FILE_BROWSER_TOOLBAR ), e );
    }
  }
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:33,代码来源:SpoonBrowser.java


示例10: getControls

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
@Override
protected void getControls() {

  super.getControls();

  XulTextbox[] boxes =
    new XulTextbox[] {
      hostNameBox, databaseNameBox, portNumberBox, userNameBox, passwordBox, customDriverClassBox,
      customUrlBox, dataTablespaceBox, indexTablespaceBox, poolSizeBox, maxPoolSizeBox, languageBox,
      systemNumberBox, clientBox };

  for ( int i = 0; i < boxes.length; i++ ) {
    XulTextbox xulTextbox = boxes[i];
    if ( ( xulTextbox != null ) && ( xulTextbox instanceof ExtTextbox ) ) {
      ExtTextbox ext = (ExtTextbox) xulTextbox;
      ext.setVariableSpace( databaseMeta );
    }
  }

  XulTree[] trees = new XulTree[] { poolParameterTree, clusterParameterTree, optionsParameterTree };

  for ( int i = 0; i < trees.length; i++ ) {
    XulTree xulTree = trees[i];
    if ( xulTree != null ) {
      xulTree.setData( databaseMeta );
    }
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:29,代码来源:DataOverrideHandler.java


示例11: testRefreshOptions

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
@Test
public void testRefreshOptions() throws Exception {
  XulListbox connectionBox = mock( XulListbox.class );
  when( document.getElementById( "connection-type-list" ) ).thenReturn( connectionBox );
  when( connectionBox.getSelectedItem() ).thenReturn( "myDb" );
  XulListbox accessBox = mock( XulListbox.class );
  when( document.getElementById( "access-type-list" ) ).thenReturn( accessBox );
  when( accessBox.getSelectedItem() ).thenReturn( "Native" );
  DataHandler dataHandler = mock( DataHandler.class );
  when( xulDomContainer.getEventHandler( "dataHandler" ) ).thenReturn( dataHandler );
  DatabaseInterface dbInterface = mock( DatabaseInterface.class );
  when( dbInterface.getDefaultDatabasePort() ).thenReturn( 5309 );
  DataHandler.connectionMap.put( "myDb", dbInterface );

  XulComponent component = mock( XulComponent.class );
  XulComponent parent = mock( XulComponent.class );
  when( component.getParent() ).thenReturn( parent );
  when( document.getElementById( "database-options-box" ) ).thenReturn( component );
  XulDomContainer fragmentContainer = mock( XulDomContainer.class );
  Document mockDoc = mock( Document.class );
  XulComponent firstChild = mock( XulComponent.class );
  when( mockDoc.getFirstChild() ).thenReturn( firstChild );
  when( fragmentContainer.getDocumentRoot() ).thenReturn( mockDoc );
  when( xulDomContainer.loadFragment( anyString(), any( Object.class ) ) ).thenReturn( fragmentContainer );

  XulTextbox portBox = mock( XulTextbox.class );
  when( document.getElementById( "port-number-text" ) ).thenReturn( portBox );

  fragmentHandler.refreshOptions();

  // Iterate through the other database access types
  when( accessBox.getSelectedItem() ).thenReturn( "JNDI" );
  fragmentHandler.refreshOptions();
  when( accessBox.getSelectedItem() ).thenReturn( "ODBC" );
  fragmentHandler.refreshOptions();
  when( accessBox.getSelectedItem() ).thenReturn( "OCI" );
  fragmentHandler.refreshOptions();
  when( accessBox.getSelectedItem() ).thenReturn( "Plugin" );
  fragmentHandler.refreshOptions();
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:41,代码来源:FragmentHandlerTest.java


示例12: init

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
public void init() {
  workingStepname = stepname;

  metaMapper = new RulesAccumulatorMetaMapper();
  metaMapper.loadMeta( (RulesAccumulatorMeta) baseStepMeta );

  // Set dialog values
  ( (XulTextbox) document.getElementById( "step-name" ) ).setValue( getStepName() );
  ( (XulTextbox) document.getElementById( "rule-file" ) ).setValue( metaMapper.getRuleFile() );
  ( (XulTextbox) document.getElementById( "rule-definition" ) ).setValue( metaMapper.getRuleDefinition() );
  ( (XulTree) document.getElementById( "fields-table" ) ).setElements( metaMapper.getColumnList() );

  // Set the initial dialog state
  if ( metaMapper.getRuleDefinition() != null && !metaMapper.getRuleDefinition().equals( "" ) ) {
    setRuleSource( "definition" );
    ( (XulRadio) document.getElementById( "rule-definition-radio-button" ) ).setSelected( true );
  } else {
    setRuleSource( "file" );
    ( (XulRadio) document.getElementById( "rule-file-radio-button" ) ).setSelected( true );
  }

  // Bind data objects to UI
  bf.setBindingType( Binding.Type.ONE_WAY );
  try {
    bf.createBinding( "step-name", "value", this, "stepName" );
    bf.createBinding( "rule-file", "value", metaMapper, "ruleFile" );
    bf.createBinding( "rule-definition", "value", metaMapper, "ruleDefinition" );
    bf.createBinding( metaMapper.getColumnList(), "children", "fields-table", "elements" ).fireSourceChanged();
    // TODO: Add converter to clear out opposing text box
    bf.createBinding( "rule-file-radio-button", "selected", "rule-file", "!disabled" ).fireSourceChanged();
    bf.createBinding( "rule-file-radio-button", "selected", "rule-definition", "disabled" ).fireSourceChanged();

    bf
      .createBinding( "rule-definition-radio-button", "selected", "rule-definition", "!disabled" )
      .fireSourceChanged();
    bf.createBinding( "rule-definition-radio-button", "selected", "rule-file", "disabled" ).fireSourceChanged();
  } catch ( Exception e ) {
    e.printStackTrace();
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:41,代码来源:RulesAccumulatorDialog.java


示例13: init

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
public void init() {
  workingStepname = stepname;

  metaMapper = new RulesExecutorMetaMapper();
  metaMapper.loadMeta( (RulesExecutorMeta) baseStepMeta );

  // Set dialog values
  ( (XulTextbox) document.getElementById( "step-name" ) ).setValue( getStepName() );
  ( (XulTextbox) document.getElementById( "rule-file" ) ).setValue( metaMapper.getRuleFile() );
  ( (XulTextbox) document.getElementById( "rule-definition" ) ).setValue( metaMapper.getRuleDefinition() );
  ( (XulTree) document.getElementById( "fields-table" ) ).setElements( metaMapper.getColumnList() );

  // Set the initial dialog state
  if ( metaMapper.getRuleDefinition() != null && !metaMapper.getRuleDefinition().equals( "" ) ) {
    setRuleSource( "definition" );
    ( (XulRadio) document.getElementById( "rule-definition-radio-button" ) ).setSelected( true );
  } else {
    setRuleSource( "file" );
    ( (XulRadio) document.getElementById( "rule-file-radio-button" ) ).setSelected( true );
  }

  // Bind data objects to UI
  bf.setBindingType( Binding.Type.ONE_WAY );
  try {
    bf.createBinding( "step-name", "value", this, "stepName" );
    bf.createBinding( "rule-file", "value", metaMapper, "ruleFile" );
    bf.createBinding( "rule-definition", "value", metaMapper, "ruleDefinition" );
    bf.createBinding( metaMapper.getColumnList(), "children", "fields-table", "elements" ).fireSourceChanged();
    // TODO: Add converter to clear out opposing text box
    bf.createBinding( "rule-file-radio-button", "selected", "rule-file", "!disabled" ).fireSourceChanged();
    bf.createBinding( "rule-file-radio-button", "selected", "rule-definition", "disabled" ).fireSourceChanged();

    bf
      .createBinding( "rule-definition-radio-button", "selected", "rule-definition", "!disabled" )
      .fireSourceChanged();
    bf.createBinding( "rule-definition-radio-button", "selected", "rule-file", "disabled" ).fireSourceChanged();
  } catch ( Exception e ) {
    e.printStackTrace();
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:41,代码来源:RulesExecutorDialog.java


示例14: createBindings

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的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$
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:16,代码来源:RepositoryConfigController.java


示例15: copyDdlToClipboard

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
public void copyDdlToClipboard() {
  try {
    XulTextbox ddlField = (XulTextbox) document.getElementById(ELEM_ID_DDL_FIELD);
    Assert.notNull(ddlField, "could not find element with id '" + ELEM_ID_DDL_FIELD + "'");
    ((XulWindow) document.getRootElement()).copy(ddlField.getValue());

  } catch (XulException e) {
    if (logger.isErrorEnabled()) {
      logger.error("an exception occurred", e);
    }
  }
}
 
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:13,代码来源:ExportHandler.java


示例16: copyDmlToClipboard

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
public void copyDmlToClipboard() {

    try {
      XulTextbox dmlField = (XulTextbox) document.getElementById(ELEM_ID_DML_FIELD);
      Assert.notNull(dmlField, "could not find element with id '" + ELEM_ID_DML_FIELD + "'");
      ((XulWindow) document.getRootElement()).copy(dmlField.getValue());

    } catch (XulException e) {
      if (logger.isErrorEnabled()) {
        logger.error("an exception occurred", e);
      }
    }
  }
 
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:14,代码来源:ExportHandler.java


示例17: copyToClipboardMultiDimPreview

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
public void copyToClipboardMultiDimPreview() {
  XulTextbox multiDimSchemaField = (XulTextbox) document.getElementById("multiDimSchemaField");
  try {
    ((XulWindow) document.getRootElement()).copy(multiDimSchemaField.getValue());
  } catch (XulException e) {
    if (logger.isErrorEnabled()) {
      logger.error("an exception occurred", e);
    }
  }
}
 
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:11,代码来源:ExportHandler.java


示例18: testShowPreviewWithAggs

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的package包/类
@Test
public void testShowPreviewWithAggs() throws Exception {
  final XulDialog diag = context.mock(XulDialog.class);
  final XulTextbox textbox = context.mock(XulTextbox.class);
  final XulComponent ignored = context.mock(XulComponent.class);
  context.checking(new Expectations() {
    {
      // get preview dialog
      one(doc).getElementById(with(any(String.class)));
      will(returnValue(diag));
      // get ddl field
      one(doc).getElementById(with(any(String.class)));
      will(returnValue(textbox));
      one(outputService).getFullArtifact(with(any(List.class)), with(equal(CreateScriptGenerator.class)));
      one(textbox).setValue(with(any(String.class)));
      // get dml field
      one(doc).getElementById(with(any(String.class)));
      will(returnValue(textbox));
      // get dml tab (if exists)
      one(doc).getElementById(with(any(String.class)));
      // returnValue doesn't matter as long as not null
      will(returnValue(ignored));
      one(outputService).getFullArtifact(with(any(List.class)), with(equal(PopulateScriptGenerator.class)));
      one(textbox).setValue(with(any(String.class)));
      // get olap field
      one(doc).getElementById(with(any(String.class)));
      will(returnValue(textbox));
      one(outputService).getFullArtifact(with(any(List.class)), with(equal(SchemaGenerator.class)));
      one(textbox).setValue(with(any(String.class)));
      one(diag).show();
    }
  });
  aggList.addAgg(new UIAggregateImpl());
  controller.showPreview();
}
 
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:36,代码来源:ExportHandlerTest.java


示例19: getControls

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的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"); //$NON-NLS-1$
    deckOptionsBox = (XulListbox) document.getElementById("deck-options-list"); //$NON-NLS-1$
    connectionBox = (XulListbox) document.getElementById("connection-type-list"); //$NON-NLS-1$
    accessBox = (XulListbox) document.getElementById("access-type-list"); //$NON-NLS-1$
    connectionNameBox = (XulTextbox) document.getElementById("connection-name-text"); //$NON-NLS-1$
    hostNameBox = (XulTextbox) document.getElementById("server-host-name-text"); //$NON-NLS-1$
    databaseNameBox = (XulTextbox) document.getElementById("database-name-text"); //$NON-NLS-1$
    portNumberBox = (XulTextbox) document.getElementById("port-number-text"); //$NON-NLS-1$
    userNameBox = (XulTextbox) document.getElementById("username-text"); //$NON-NLS-1$
    passwordBox = (XulTextbox) document.getElementById("password-text"); //$NON-NLS-1$
    dataTablespaceBox = (XulTextbox) document.getElementById("data-tablespace-text"); //$NON-NLS-1$
    indexTablespaceBox = (XulTextbox) document.getElementById("index-tablespace-text"); //$NON-NLS-1$
    serverInstanceBox = (XulTextbox) document.getElementById("instance-text"); //$NON-NLS-1$
    serverNameBox = (XulTextbox) document.getElementById("server-name-text"); //$NON-NLS-1$
    customUrlBox = (XulTextbox) document.getElementById("custom-url-text"); //$NON-NLS-1$
    customDriverClassBox = (XulTextbox) document.getElementById("custom-driver-class-text"); //$NON-NLS-1$
    languageBox = (XulTextbox) document.getElementById("language-text"); //$NON-NLS-1$
    systemNumberBox = (XulTextbox) document.getElementById("system-number-text"); //$NON-NLS-1$
    clientBox = (XulTextbox) document.getElementById("client-text"); //$NON-NLS-1$
    doubleDecimalSeparatorCheck = (XulCheckbox) document.getElementById("decimal-separator-check"); //$NON-NLS-1$
    resultStreamingCursorCheck = (XulCheckbox) document.getElementById("result-streaming-check"); //$NON-NLS-1$
    poolingCheck = (XulCheckbox) document.getElementById("use-pool-check"); //$NON-NLS-1$
    clusteringCheck = (XulCheckbox) document.getElementById("use-cluster-check"); //$NON-NLS-1$
    clusterParameterDescriptionLabel = (XulLabel) document.getElementById("cluster-parameter-description-label"); //$NON-NLS-1$
    poolSizeLabel = (XulLabel) document.getElementById("pool-size-label"); //$NON-NLS-1$
    poolSizeBox = (XulTextbox) document.getElementById("pool-size-text"); //$NON-NLS-1$
    maxPoolSizeLabel = (XulLabel) document.getElementById("max-pool-size-label"); //$NON-NLS-1$
    maxPoolSizeBox = (XulTextbox) document.getElementById("max-pool-size-text"); //$NON-NLS-1$
    poolParameterTree = (XulTree) document.getElementById("pool-parameter-tree"); //$NON-NLS-1$
    clusterParameterTree = (XulTree) document.getElementById("cluster-parameter-tree"); //$NON-NLS-1$
    optionsParameterTree = (XulTree) document.getElementById("options-parameter-tree"); //$NON-NLS-1$
    poolingDescription = (XulTextbox) document.getElementById("pooling-description"); //$NON-NLS-1$ 
    poolingParameterDescriptionLabel = (XulLabel) document.getElementById("pool-parameter-description-label"); //$NON-NLS-1$ 
    poolingDescriptionLabel = (XulLabel) document.getElementById("pooling-description-label"); //$NON-NLS-1$ 
    supportBooleanDataType = (XulCheckbox) document.getElementById("supports-boolean-data-type"); //$NON-NLS-1$;
    quoteIdentifiersCheck = (XulCheckbox) document.getElementById("quote-identifiers-check"); //$NON-NLS-1$;
    lowerCaseIdentifiersCheck = (XulCheckbox) document.getElementById("force-lower-case-check"); //$NON-NLS-1$;
    upperCaseIdentifiersCheck = (XulCheckbox) document.getElementById("force-upper-case-check"); //$NON-NLS-1$;
    preferredSchemaName = (XulTextbox) document.getElementById("preferred-schema-name-text"); //$NON-NLS-1$;
    sqlBox = (XulTextbox) document.getElementById("sql-text"); //$NON-NLS-1$;
    useIntegratedSecurityCheck = (XulCheckbox) document.getElementById("use-integrated-security-check"); //$NON-NLS-1$;
  }
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:48,代码来源:DataHandler.java


示例20: getControls

import org.pentaho.ui.xul.components.XulTextbox; //导入依赖的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-datasour 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java FSDataInputStreamWrapper类代码示例发布时间:2022-05-22
下一篇:
Java DefaultLocale类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap