本文整理匯總了Java中com.google.gwt.user.client.ui.VerticalPanel.remove方法的典型用法代碼示例。如果您正苦於以下問題:Java VerticalPanel.remove方法的具體用法?Java VerticalPanel.remove怎麽用?Java VerticalPanel.remove使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.google.gwt.user.client.ui.VerticalPanel
的用法示例。
在下文中一共展示了VerticalPanel.remove方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: bindProgressBar
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
/**
* Allows to bind and unbind the progress bar from the text box base objects
* @param bind if true then first unbinds the old object and then binds the new one
* if false then just unbinds the old object.
* @param textObject the new text box base to bind the progress bar with or null for bind==false
* @param maxObjectCapacity the maximum capacity of the provided text box base or 0 for bind==false
* @param progressBarPanel the panel that will store the progress bar or null for bind==false
* @param placeHolder the place holder that will be substituted with the progress bar or null for bind==false
*/
private static void bindProgressBar( final boolean bind, final TextBoxBase textObject,
final int maxObjectCapacity,
final VerticalPanel progressBarPanel,
final SimplePanel placeHolder ) {
//First remove the old bindings if any
if( bondedProgressBarPanel != null ) {
bondedProgressBarPanel.remove( progressBar );
bondedProgressBarPanel.add( bindedProgBarPlaceHolder );
bondedProgressBarPanel = null;
bindedProgBarPlaceHolder = null;
}
//Do new bindings
if( bind ) {
if( progressBarPanel != null ) {
progressBarPanel.remove( placeHolder );
progressBarPanel.add( progressBar );
/*Remove the panel from the tabulation sequence*/
progressBar.setTabIndex(-1);
}
bindedProgBarPlaceHolder = placeHolder;
bondedProgressBarPanel = progressBarPanel;
}
//Then bind the new object or finish un-binding the old one
progressBar.bindProgressBar(bind, textObject, maxObjectCapacity);
}
示例2: removePaletteItem
import com.google.gwt.user.client.ui.VerticalPanel; //導入方法依賴的package包/類
private void removePaletteItem(SimplePaletteItem component, ComponentCategory category) {
VerticalPanel panel = categoryPanels.get(category);
panel.remove(component);
}