當前位置: 首頁>>代碼示例>>Java>>正文


Java VerticalPanel.remove方法代碼示例

本文整理匯總了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);
}
 
開發者ID:ivan-zapreev,項目名稱:x-cure-chat,代碼行數:37,代碼來源:TextBaseTranslitAndProgressBar.java

示例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);
}
 
開發者ID:mit-cml,項目名稱:appinventor-extensions,代碼行數:5,代碼來源:YoungAndroidPalettePanel.java


注:本文中的com.google.gwt.user.client.ui.VerticalPanel.remove方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。