builtInSelectorLayout.addRow( new HTML( " <i>"
+ constants.BuildPackageUsingFollowingAssets()
+ "</i>" ) );
HorizontalPanel builtInSelectorStatusPanel = new HorizontalPanel();
final CheckBox enableStatusCheckBox = new CheckBox();
enableStatusCheckBox.setValue( false );
builtInSelectorStatusPanel.add( enableStatusCheckBox );
builtInSelectorStatusPanel.add( new HTML( " <i>"
+ constants.BuildPackageUsingBuiltInSelectorStatus()
+ " </i>" ) );
final ListBox statusOperator = new ListBox();
String[] vals = new String[]{"=", "!="};
for ( int i = 0; i < vals.length; i++ ) {
statusOperator.addItem( vals[i],
vals[i] );
}
builtInSelectorStatusPanel.add( statusOperator );
final TextBox statusValue = new TextBox();
statusValue.setTitle( constants.WildCardsSearchTip() );
builtInSelectorStatusPanel.add( statusValue );
builtInSelectorLayout.addRow( builtInSelectorStatusPanel );
HorizontalPanel builtInSelectorCatPanel = new HorizontalPanel();
final CheckBox enableCategoryCheckBox = new CheckBox();
enableCategoryCheckBox.setValue( false );
builtInSelectorCatPanel.add( enableCategoryCheckBox );
builtInSelectorCatPanel.add( new HTML( " <i>"
+ constants.BuildPackageUsingBuiltInSelectorCat()
+ " </i>" ) );
final ListBox catOperator = new ListBox();
String[] catVals = new String[]{"=", "!="};
for ( int i = 0; i < catVals.length; i++ ) {
catOperator.addItem( catVals[i],
catVals[i] );
}
builtInSelectorCatPanel.add( catOperator );
final CategoryExplorerWidget catChooser = new CategoryExplorerWidget( new CategorySelectHandler() {
public void selected(String selectedPath) {
}
} );
ScrollPanel catScroll = new ScrollPanel( catChooser );
catScroll.setAlwaysShowScrollBars( true );
catScroll.setSize( "300px",
"130px" );
builtInSelectorCatPanel.add( catScroll );
builtInSelectorLayout.addRow( builtInSelectorCatPanel );
layout.addRow( builtInSelectorLayout );
// Custom selector layout
customSelectorLayout.setVisible( false );
HorizontalPanel customSelectorPanel = new HorizontalPanel();
customSelectorPanel.add( new HTML( " <i>"
+ constants.BuildPackageUsingCustomSelectorSelector()
+ " </i>" ) ); // NON-NLS
final ListBox customSelector = new ListBox();
customSelector.setTitle( constants.WildCardsSearchTip() );
customSelectorPanel.add( customSelector );
loadCustomSelectorList( customSelector );
customSelectorLayout.addRow( customSelectorPanel );
layout.addRow( customSelectorLayout );
final Button b = new Button( constants.BuildPackage() );
b.setTitle( constants.ThisWillValidateAndCompileAllTheAssetsInAPackage() );
b.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent event) {
doBuild( buildResults,
statusOperator.getValue( statusOperator.getSelectedIndex() ),
statusValue.getText(),
enableStatusCheckBox.getValue(),
catOperator.getValue( catOperator.getSelectedIndex() ),
catChooser.getSelectedPath(),
enableCategoryCheckBox.getValue(),
customSelector.getSelectedIndex() != -1 ? customSelector.getValue( customSelector.getSelectedIndex() ) : null );
}
} );
HorizontalPanel buildStuff = new HorizontalPanel();
buildStuff.add( b );