Refine search
/** * Gets the value for currently selected item. If multiple items are selected, * this method will return the value of the first selected item. * * @return the value for selected item, or {@code null} if none is selected */ public String getSelectedValue() { int index = getSelectedIndex(); return index == -1 ? null : getValue(index); }
/** * Gets the value for currently selected item. If multiple items are selected, * this method will return the value of the first selected item. * * @return the value for selected item, or {@code null} if none is selected */ public String getSelectedValue() { int index = getSelectedIndex(); return index == -1 ? null : getValue(index); }
private String getSelectedValue() { int selectedIndex = listBox.getSelectedIndex(); if(selectedIndex>=0) return listBox.getValue(selectedIndex); else return ""; }
@Override protected String getValue() { if (widget != null) { return widget.getValue(widget.getSelectedIndex()); } return null; } }
/** * Gets the value for currently selected item. If multiple items are selected, * this method will return the value of the first selected item. * * @return the value for selected item, or {@code null} if none is selected */ public String getSelectedValue() { int index = getSelectedIndex(); return index == -1 ? null : getValue(index); }
/** {@inheritDoc} */ @NotNull @Override public String getRepositoryUrl() { int index = repository.getSelectedIndex(); return repository.getValue(index); }
public void execute() { addActionSetField( v, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void execute() { addCallMethod( v, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void execute() { addCallMethod( v, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void execute() { addNewFact( f, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void execute() { addNewCE( ce, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void onClick( ClickEvent event ) { final String txtValue = lb.getValue( lb.getSelectedIndex() ); Boolean boolValue = ( txtValue.equals( "" ) ? null : txtValue.equals( "true" ) ); value.setBooleanValue( boolValue ); }
public void execute() { addNewDSLRhs( sen, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void execute() { addNewFCE( ce, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
@Override public void onChange(ChangeEvent event) { int index = input.getSelectedIndex(); String value = index != -1 ? input.getValue(index) : null; listener.valueChanged(value); } });
@Deprecated public static EIURI getSelectedUri(final ListBox listBox) { final EIURI selectedUri = EIURI.create( listBox.getValue( listBox.getSelectedIndex() ) ); return selectedUri; }
public void execute() { addRetract( v, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void execute() { addNewDSLLhs( sen, Integer.parseInt( positionCbo.getValue( positionCbo.getSelectedIndex() ) ) ); hide(); } } );
public void onChange( ChangeEvent event ) { int index = workItemsListBox.getSelectedIndex(); if ( index >= 0 ) { String selectedWorkItemName = workItemsListBox.getValue( index ); editingCol.setWorkItemDefinition( workItemDefinitionsMap.get( selectedWorkItemName ) ); showWorkItemParameters(); center(); } }
public void onChange( ChangeEvent event ) { ListBox lb = (ListBox) event.getSource(); int index = lb.getSelectedIndex(); if ( index > 0 ) { ExpressionBuilder.this.makeDirty(); startPointChange( lb.getValue( index ) ); } } } );