@Test public void testSetLayoutStyle() throws Exception { assertSame( LayoutStyle.MAC, searchField.getLayoutStyle() ); assertTrue( searchField.isMacLayoutStyle() ); assertFalse( searchField.getCancelButton().isVisible() ); assertTrue( searchField.getFindButton().isVisible() ); searchField.setText( "test" ); assertTrue( searchField.getCancelButton().isVisible() ); assertTrue( searchField.getFindButton().isVisible() ); searchField.setLayoutStyle( LayoutStyle.VISTA ); assertTrue( searchField.isVistaLayoutStyle() ); assertTrue( searchField.getCancelButton().isVisible() ); assertFalse( searchField.getFindButton().isVisible() ); }
public void setLayoutStyle(LayoutStyle layoutStyle) { layoutStyleSet = true; firePropertyChange("layoutStyle", this.layoutStyle, this.layoutStyle = layoutStyle); }
JXSearchField extends JXTextField { public void setLayoutStyle(LayoutStyle layoutStyle) { layoutStyleSet = true; firePropertyChange("layoutStyle", this.layoutStyle, this.layoutStyle = layoutStyle); } }
JXSearchField extends JXTextField { public void setLayoutStyle(LayoutStyle layoutStyle) { layoutStyleSet = true; firePropertyChange("layoutStyle", this.layoutStyle, this.layoutStyle = layoutStyle); } JXSearchField();  JXSearchField(String prompt); }
JXSearchField extends JXTextField { public void setLayoutStyle(LayoutStyle layoutStyle) { layoutStyleSet = true; firePropertyChange("layoutStyle", this.layoutStyle, this.layoutStyle = layoutStyle); } JXSearchField();  JXSearchField(String prompt); SearchMode getSearchMode(); boolean isInstantSearchMode(); boolean isRegularSearchMode(); void setSearchMode(SearchMode searchMode); int getInstantSearchDelay(); void setInstantSearchDelay(int instantSearchDelay); LayoutStyle getLayoutStyle(); boolean isVistaLayoutStyle(); boolean isMacLayoutStyle(); void setLayoutStyle(LayoutStyle layoutStyle); @Override void setMargin(Insets m); final ActionListener getCancelAction(); final void setCancelAction(ActionListener cancelAction); final JButton getCancelButton(); final ActionListener getFindAction(); final void setFindAction(ActionListener findAction); final JButton getFindButton(); final JButton getPopupButton(); boolean isUseSeperatePopupButton(); void setUseSeperatePopupButton(boolean useSeperatePopupButton); boolean isUseNativeSearchFieldIfPossible(); void setUseNativeSearchFieldIfPossible(boolean useNativeSearchFieldIfPossible); @Override void setEditable(boolean b); @Override void setEnabled(boolean enabled); void setFindPopupMenu(JPopupMenu findPopupMenu); JPopupMenu getFindPopupMenu(); final boolean isManagingRecentSearches(); String getRecentSearchesSaveKey(); void setRecentSearchesSaveKey(String recentSearchesSaveKey); RecentSearches getRecentSearches(); Timer getInstantSearchTimer(); @Override boolean hasFocus(); @Override void updateUI(); @Override void setPromptFontStyle(Integer fontStyle); void customSetUIProperty(String propertyName, Object value); void customSetUIProperty(String propertyName, Object value, boolean override); @Override void postActionEvent(); }
JXSearchField extends JXTextField { public void setLayoutStyle(LayoutStyle layoutStyle) { layoutStyleSet = true; firePropertyChange("layoutStyle", this.layoutStyle, this.layoutStyle = layoutStyle); } JXSearchField();  JXSearchField(String prompt); SearchMode getSearchMode(); boolean isInstantSearchMode(); boolean isRegularSearchMode(); void setSearchMode(SearchMode searchMode); int getInstantSearchDelay(); void setInstantSearchDelay(int instantSearchDelay); LayoutStyle getLayoutStyle(); boolean isVistaLayoutStyle(); boolean isMacLayoutStyle(); void setLayoutStyle(LayoutStyle layoutStyle); @Override void setMargin(Insets m); final ActionListener getCancelAction(); final void setCancelAction(ActionListener cancelAction); final JButton getCancelButton(); final ActionListener getFindAction(); final void setFindAction(ActionListener findAction); final JButton getFindButton(); final JButton getPopupButton(); boolean isUseSeperatePopupButton(); void setUseSeperatePopupButton(boolean useSeperatePopupButton); boolean isUseNativeSearchFieldIfPossible(); void setUseNativeSearchFieldIfPossible(boolean useNativeSearchFieldIfPossible); @Override void setEditable(boolean b); @Override void setEnabled(boolean enabled); void setFindPopupMenu(JPopupMenu findPopupMenu); JPopupMenu getFindPopupMenu(); final boolean isManagingRecentSearches(); String getRecentSearchesSaveKey(); void setRecentSearchesSaveKey(String recentSearchesSaveKey); RecentSearches getRecentSearches(); Timer getInstantSearchTimer(); @Override boolean hasFocus(); @Override void updateUI(); @Override void setPromptFontStyle(Integer fontStyle); void customSetUIProperty(String propertyName, Object value); void customSetUIProperty(String propertyName, Object value, boolean override); @Override void postActionEvent();  }