本文整理汇总了Java中org.pentaho.ui.xul.stereotype.Bindable类的典型用法代码示例。如果您正苦于以下问题:Java Bindable类的具体用法?Java Bindable怎么用?Java Bindable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Bindable类属于org.pentaho.ui.xul.stereotype包,在下文中一共展示了Bindable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: remove
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@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();
}
示例2: closeDialog
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void closeDialog(){
lastClicked = CANCELLED;
this.dialog.hide();
Spoon.getInstance().refreshTree();
// listeners may remove themselves, old-style iteration
for(int i=0; i<listeners.size(); i++){
listeners.get(i).onDialogCancel();
}
}
示例3: setJsonQuery
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
/**
* @param jsonQuery the jsonQuery to set
*/
@Bindable public void setJsonQuery( String jsonQuery ) {
String prevVal = this.jsonQuery;
this.jsonQuery = jsonQuery;
firePropertyChange( "jsonQuery", prevVal, jsonQuery );
}
示例4: moveSelectionToOrders
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void moveSelectionToOrders() {
List<UIColumn> cols = workspace.getSelectedColumns();
for ( UIColumn col : cols ) {
if ( workspace.getOrders().contains( col ) == false ) {
workspace.addOrder( col );
}
}
}
示例5: closeDialog
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void closeDialog() {
lastClicked = CANCELLED;
this.dialog.hide();
Spoon.getInstance().refreshTree();
// listeners may remove themselves, old-style iteration
for ( int i = 0; i < listeners.size(); i++ ) {
listeners.get( i ).onDialogCancel();
}
}
示例6: remove
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void remove() {
if ( getSelectedIndex() < 0 ) {
return;
}
workspace.getConditions().remove( getSelectedIndex() );
conditionTree.clearSelection();
}
示例7: setColumn
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@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 );
}
}
示例8: setOperator
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void setOperator( Operator operator ) {
this.operator = operator;
switch ( this.operator ) {
case IS_NULL:
case IS_NOT_NULL:
this.setValueDisabled( true );
break;
default:
this.setValueDisabled( false );
}
}
示例9: moveUp
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@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
}
}
示例10: setValue
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@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$
}
示例11: getComboTypeStr
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@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();
}
}
示例12: setComboTypeStr
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void setComboTypeStr( Object name ) {
if ( isTopMost() ) {
if ( name.equals( "NOT" ) ) { //$NON-NLS-1$
combinationType = CombinationType.AND_NOT;
} else {
combinationType = CombinationType.AND;
}
} else {
combinationType = CombinationType.valueOf( (String) name );
}
}
示例13: moveDown
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void moveDown() {
int prevIndex = getSelectedIndex();
try {
workspace.getSelections().moveChildDown( getSelectedIndex() );
columnTree.clearSelection();
columnTree.setSelectedRows( new int[] { prevIndex + 1 } );
} catch ( IllegalArgumentException e ) {
// out of bounds
}
}
示例14: getComparisons
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public Vector getComparisons() {
Vector v = new Vector();
v.addAll( Arrays.asList( Operator.values( this.getColumn().getType() == ColumnType.TEXT ) ) );
return v;
}
示例15: moveUp
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void moveUp() {
try {
int prevIndex = getSelectedIndex();
workspace.getOrders().moveChildUp( getSelectedIndex() );
orderTree.clearSelection();
orderTree.setSelectedRows( new int[] { prevIndex - 1 } );
} catch ( IllegalArgumentException e ) {
// out of bounds
}
}