org.pentaho.ui.xul.stereotype.Bindable Java Examples
The following examples show how to use
org.pentaho.ui.xul.stereotype.Bindable.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SelectedColumnController.java From mql-editor with GNU Lesser General Public License v2.1 | 6 votes |
@Bindable public void remove() { if ( getSelectedIndex() < 0 ) { return; } if ( workspace.getSelections().get( getSelectedIndex() ).isPersistent() ) { if ( denyRemoveColumnDialog == null ) { throw new IllegalStateException( "Error dialog has not been loaded yet" ); } else { denyRemoveColumnDialog.show(); } return; } workspace.getSelections().remove( getSelectedIndex() ); columnTree.clearSelection(); }
Example #2
Source File: MainController.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public static void showErrorDialog( String message ) { if ( errorDialog == null ) { throw new IllegalStateException( "Error dialog has not been loaded yet" ); } else { XulLabel msg = (XulLabel) errorDialog.getElementById( "errorLabel" ); msg.setValue( message ); errorDialog.show(); } }
Example #3
Source File: UICondition.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void setColumn( UIColumn column ) { this.column = column; // only do this if it's default, otherwise you may override a user specified value if ( this.operator == Operator.EQUAL ) { this.setOperator( ( column.getType() == ColumnType.TEXT ) ? Operator.EXACTLY_MATCHES : Operator.EQUAL ); } }
Example #4
Source File: UICondition.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void setValueDisabled( boolean disabled ) { boolean prevVal = this.valueDisabled; this.valueDisabled = disabled; this.firePropertyChange( "valueDisabled", prevVal, this.valueDisabled ); if ( disabled ) { setValue( null ); } }
Example #5
Source File: MainController.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void moveSelectionToConditions() { List<UIColumn> cols = workspace.getSelectedColumns(); for ( UIColumn col : cols ) { workspace.addCondition( col ); } }
Example #6
Source File: OrderController.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void remove() { if ( getSelectedIndex() < 0 ) { return; } workspace.getOrders().remove( getSelectedIndex() ); orderTree.clearSelection(); }
Example #7
Source File: MainController.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public static void closeErrorDialog( String message ) { if ( errorDialog == null ) { throw new IllegalStateException( "Error dialog has not been loaded yet" ); } else { errorDialog.hide(); } }
Example #8
Source File: Workspace.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void setSelectedOrder( UIOrder selectedOrder ) { UIOrder prevOrder = this.selectedOrder; this.selectedOrder = selectedOrder; this.firePropertyChange( "selectedOrder", prevOrder, this.selectedOrder ); }
Example #9
Source File: Workspace.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void clear() { removeListeners(); this.selectedColumn = null; this.selectedColumns = new ArrayList<UIColumn>(); this.setOrders( new UIOrders() ); this.setSelections( new UIColumns() ); this.setConditions( new UIConditions() ); this.setLimit( -1 ); setupListeners(); }
Example #10
Source File: OrderController.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void moveDown() { int prevIndex = getSelectedIndex(); try { workspace.getOrders().moveChildDown( getSelectedIndex() ); orderTree.clearSelection(); orderTree.setSelectedRows( new int[] { prevIndex + 1 } ); } catch ( IllegalArgumentException e ) { // out of bounds } }
Example #11
Source File: Workspace.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void setSelectedColumns( List<UIColumn> selectedColumns ) { List<UIColumn> prevSelected = this.selectedColumns; this.selectedColumns = selectedColumns; this.firePropertyChange( "selectedColumns", prevSelected, selectedColumns ); }
Example #12
Source File: Workspace.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void setSelectedDomain( UIDomain selectedDomain ) { UIDomain prevDomain = this.selectedDomain; this.selectedDomain = selectedDomain; this.clear(); this.firePropertyChange( "selectedDomain", prevDomain, selectedDomain ); }
Example #13
Source File: UICondition.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public String getComboTypeStr() { if ( isTopMost() ) { if ( combinationType == CombinationType.AND_NOT ) { return "NOT"; //$NON-NLS-1$ } else { return ""; //$NON-NLS-1$ } } else { return combinationType.name(); } }
Example #14
Source File: ConditionsController.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void moveDown() { int prevIndex = getSelectedIndex(); try { workspace.getConditions().moveChildDown( getSelectedIndex() ); conditionTree.clearSelection(); conditionTree.setSelectedRows( new int[] { prevIndex + 1 } ); } catch ( IllegalArgumentException e ) { // out of bounds } }
Example #15
Source File: MainController.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void moveSelectionToOrders() { List<UIColumn> cols = workspace.getSelectedColumns(); for ( UIColumn col : cols ) { if ( workspace.getOrders().contains( col ) == false ) { workspace.addOrder( col ); } } }
Example #16
Source File: UICondition.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public Vector getComparisons() { Vector v = new Vector(); v.addAll( Arrays.asList( Operator.values( this.getColumn().getType() == ColumnType.TEXT ) ) ); return v; }
Example #17
Source File: ConditionsController.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void moveUp() { try { int prevIndex = getSelectedIndex(); workspace.getConditions().moveChildUp( getSelectedIndex() ); conditionTree.clearSelection(); conditionTree.setSelectedRows( new int[] { prevIndex - 1 } ); } catch ( IllegalArgumentException e ) { // out of bounds } }
Example #18
Source File: Workspace.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void setDomains( List<UIDomain> domains ) { List<UIDomain> oldDomains = this.domains; this.domains = domains; if ( oldDomains != domains ) { this.firePropertyChange( "domains", null, domains ); //$NON-NLS-1$ } }
Example #19
Source File: Workspace.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void setSelectedCategory( UICategory selectedCategory ) { List<UIColumn> prevColumns = getColumns(); UICategory oldCat = this.selectedCategory; this.selectedCategory = selectedCategory; this.firePropertyChange( "selectedCategory", oldCat, this.selectedCategory ); this.firePropertyChange( "columns", prevColumns, getColumns() ); }
Example #20
Source File: SelectedColumnController.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void moveUp() { try { int prevIndex = getSelectedIndex(); workspace.getSelections().moveChildUp( getSelectedIndex() ); columnTree.clearSelection(); columnTree.setSelectedRows( new int[] { prevIndex - 1 } ); } catch ( IllegalArgumentException e ) { // out of bounds } }
Example #21
Source File: MongoDbModel.java From pentaho-mongodb-plugin with Apache License 2.0 | 5 votes |
/** * @param jsonQuery the jsonQuery to set */ @Bindable public void setJsonQuery( String jsonQuery ) { String prevVal = this.jsonQuery; this.jsonQuery = jsonQuery; firePropertyChange( "jsonQuery", prevVal, jsonQuery ); }
Example #22
Source File: UICondition.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void setParameterized( boolean parameterized ) { boolean prevVal = isParameterized(); this.firePropertyChange( "parameterized", prevVal, parameterized ); this.parameterized = parameterized; this.firePropertyChange( "defaultDisabled", null, isDefaultDisabled() ); if ( !parameterized ) { setDefaultValue( "" ); } }
Example #23
Source File: UICondition.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public void setValue( String value ) { String prevVal = this.value; this.value = value; this.firePropertyChange( "value", prevVal, this.value ); //$NON-NLS-1$ this.setParameterized( value != null && value.contains( "{" ) && value.contains( "}" ) ); //$NON-NLS-1$ //$NON-NLS-2$ }
Example #24
Source File: UIOrder.java From mql-editor with GNU Lesser General Public License v2.1 | 4 votes |
@Bindable public List<AggType> getAggTypes() { return this.column.getAggTypes(); }
Example #25
Source File: MainController.java From mql-editor with GNU Lesser General Public License v2.1 | 4 votes |
@Bindable public void init() { createBindings(); }
Example #26
Source File: UIOrder.java From mql-editor with GNU Lesser General Public License v2.1 | 4 votes |
@Bindable public Vector getOrderTypes() { Vector v = new Vector(); v.addAll( Arrays.asList( MqlOrder.Type.values() ) ); return v; }
Example #27
Source File: UIOrder.java From mql-editor with GNU Lesser General Public License v2.1 | 4 votes |
@Bindable public Vector getBindingAggTypes() { return column.getBindingAggTypes(); }
Example #28
Source File: UIOrder.java From mql-editor with GNU Lesser General Public License v2.1 | 4 votes |
@Bindable public void setSelectedAggType( Object aggType ) { setSelectedAggType( (AggType) aggType ); }
Example #29
Source File: UIOrder.java From mql-editor with GNU Lesser General Public License v2.1 | 4 votes |
@Bindable public void setColumnName( String str ) { // ignored }
Example #30
Source File: UICondition.java From mql-editor with GNU Lesser General Public License v2.1 | 4 votes |
@Bindable public boolean isTopMost() { return topMost; }