コード例 #1
0
ファイル: Dialog.java プロジェクト: chunfuermosi/wiquery
 /**
  * Sets the window's min width.
  *
  * @return instance of the current component
  */
 public Dialog setMinWidth(int minWidth) {
   options.put("minWidth", minWidth);
   return this;
 }
コード例 #2
0
ファイル: Dialog.java プロジェクト: chunfuermosi/wiquery
 /**
  * Sets if this window is resizable or not.
  *
  * @return instance of the current component
  */
 public Dialog setResizable(boolean resizable) {
   options.put("resizable", resizable);
   return this;
 }
コード例 #3
0
ファイル: Dialog.java プロジェクト: chunfuermosi/wiquery
 /**
  * Sets the window's max width.
  *
  * @return instance of the current component
  */
 public Dialog setMaxWidth(int maxWidth) {
   options.put("maxWidth", maxWidth);
   return this;
 }
コード例 #4
0
ファイル: Dialog.java プロジェクト: chunfuermosi/wiquery
 /**
  * Sets the window's min height.
  *
  * @return instance of the current component
  */
 public Dialog setMinHeight(int minHeight) {
   options.put("minHeight", minHeight);
   return this;
 }
コード例 #5
0
ファイル: Dialog.java プロジェクト: chunfuermosi/wiquery
 /**
  * Sets the window's height.
  *
  * @return instance of the current component
  */
 public Dialog setHeight(int height) {
   options.put("height", height);
   return this;
 }
コード例 #6
0
ファイル: Dialog.java プロジェクト: chunfuermosi/wiquery
 /**
  * Sets the window's max height.
  *
  * @return instance of the current component
  */
 public Dialog setMaxHeight(int maxHeight) {
   options.put("maxHeight", maxHeight);
   return this;
 }
コード例 #7
0
ファイル: Dialog.java プロジェクト: chunfuermosi/wiquery
 /**
  * Sets the overlay under the window. This parameter will take effect only if the {@link
  * #setModal(boolean)} method is call with true.
  *
  * @param ratio a float value between 0 and 1 (1 is 100% black overlay)
  * @return instance of the current component
  * @deprecated will be removed in 1.3
  */
 @Deprecated
 public Dialog setOverlayRatio(float ratio) {
   // TODO nested options !
   options.put("overlay", "{opacity: " + ratio + ", background: 'black'}");
   return this;
 }
コード例 #8
0
ファイル: Dialog.java プロジェクト: chunfuermosi/wiquery
 /**
  * Sets the window's width.
  *
  * @return instance of the current component
  */
 public Dialog setWidth(int width) {
   options.put("width", width);
   return this;
 }
コード例 #9
0
ファイル: Dialog.java プロジェクト: chunfuermosi/wiquery
 /**
  * Sets if this window is modal or not.
  *
  * @param modal true if the window is modal, false otherwise
  * @return instance of the current component
  */
 public Dialog setModal(boolean modal) {
   options.put("modal", modal);
   return this;
 }
コード例 #10
0
ファイル: Dialog.java プロジェクト: chunfuermosi/wiquery
 /**
  * Sets if this window opens autmatically after the page is loaded.
  *
  * @param autoOpen true if the window auto opens, false otherwise
  * @return instance of the current component
  */
 public Dialog setAutoOpen(boolean autoOpen) {
   options.put("autoOpen", autoOpen);
   return this;
 }
コード例 #11
0
 public MultiBoxesSelectionBehavior setMillisDelay(int msDelay) {
   options.put("ms_delay", msDelay);
   return this;
 }
コード例 #12
0
 public MultiBoxesSelectionBehavior setMaxSelections(int max) {
   options.put("max_selections", max);
   return this;
 }
コード例 #13
0
ファイル: GalleriaOptions.java プロジェクト: astrapi69/xaloon
 public GalleriaOptions extended() {
   options.put("extend", "function() {this.attachKeyboard({left: this.prev,right: this.next}); }");
   return this;
 }