本文整理汇总了Java中org.pentaho.ui.xul.stereotype.Bindable类的典型用法代码示例。如果您正苦于以下问题:Java Bindable类的具体用法?Java Bindable怎么用?Java Bindable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Bindable类属于org.pentaho.ui.xul.stereotype包,在下文中一共展示了Bindable类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:17,代码来源:SelectedColumnController.java
示例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();
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:12,代码来源:MainController.java
示例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 );
}
开发者ID:pentaho,项目名称:pentaho-mongodb-plugin,代码行数:10,代码来源:MongoDbModel.java
示例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 );
}
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:10,代码来源:MainController.java
示例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();
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:12,代码来源:MainController.java
示例6: remove
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void remove() {
if ( getSelectedIndex() < 0 ) {
return;
}
workspace.getConditions().remove( getSelectedIndex() );
conditionTree.clearSelection();
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:9,代码来源:ConditionsController.java
示例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 );
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:10,代码来源:UICondition.java
示例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 );
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:13,代码来源:UICondition.java
示例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
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:13,代码来源:ConditionsController.java
示例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$
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:9,代码来源:UICondition.java
示例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();
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:13,代码来源:UICondition.java
示例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 );
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:13,代码来源:UICondition.java
示例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
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:12,代码来源:SelectedColumnController.java
示例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;
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:9,代码来源:UICondition.java
示例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
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:12,代码来源:OrderController.java
示例16: moveDown
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@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
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:12,代码来源:OrderController.java
示例17: setSelectedDomainId
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void setSelectedDomainId( String domainId ) {
for ( UIDomain uiDomain : domains ) {
if ( uiDomain.getName().equals( domainId ) ) {
setSelectedDomain( uiDomain );
break;
}
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:10,代码来源:Workspace.java
示例18: moveSelectionToConditions
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void moveSelectionToConditions() {
List<UIColumn> cols = workspace.getSelectedColumns();
for ( UIColumn col : cols ) {
workspace.addCondition( col );
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:8,代码来源:MainController.java
示例19: setValueDisabled
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void setValueDisabled( boolean disabled ) {
boolean prevVal = this.valueDisabled;
this.valueDisabled = disabled;
this.firePropertyChange( "valueDisabled", prevVal, this.valueDisabled );
if ( disabled ) {
setValue( null );
}
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:10,代码来源:UICondition.java
示例20: remove
import org.pentaho.ui.xul.stereotype.Bindable; //导入依赖的package包/类
@Bindable
public void remove() {
if ( getSelectedIndex() < 0 ) {
return;
}
workspace.getOrders().remove( getSelectedIndex() );
orderTree.clearSelection();
}
开发者ID:pentaho,项目名称:mql-editor,代码行数:9,代码来源:OrderController.java
注:本文中的org.pentaho.ui.xul.stereotype.Bindable类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论