Skip to content

Class: DefaultFormPanel

Vitor "Pliavi" Silvério de Souza edited this page Oct 26, 2016 · 1 revision

A classe DefaultFormPanel é uma classe molde não abstrata (poderia ser, mas por redução de linhas de código é melhor manter como classe comum) que facilita a criação de formulários utilizando o esquema do GridBagLayout, praticamente não sendo necessário conhecer este gerenciador de layout;

Modo de Uso

Métodos

  • DefaultFormPanel makeGrid(Division division, Flex flex);
  • void addRow();
  • DefaultFormPanel addIcon(GoogleMaterialDesignIcons iconName);
  • JLabel addLabel(String text);
  • void addTitleLabel(String text);
  • MaterialTextField addTextField(String label);
  • MaterialTextField addTextField(String label, String hint);
  • MaterialFormattedTextField addFormattedTextField(String label, String mask);
  • MaterialComboBox addComboBox(String... items);
  • MaterialComboBox addComboBox(Map<String, String> items, int preselected);
  • MaterialComboBox addComboBox(Map<String, String> items);
  • MaterialButton addTitleButton(String label);
  • MaterialButton addButton(String label);
  • JCheckBox addCheckBox(String label);
  • DefaultFormPanel setWidth(int width);
  • DefaultFormPanel setHeight(int width);
  • DefaultFormPanel setGridWidth(int gridWidth);
  • JPanel getHeader();
  • JPanel getBody();
  • JPanel getFooter();
  • void toggleVisibility(Division division);
  • DefaultFormPanel addInnerPanel(String title);
  • DefaultFormPanel addInnerPanel(DefaultFormPanel panel, String title);
  • DefaultFormPanel setInset(int x);
  • DefaultFormPanel setInset(int top, int left, int bottom, int right);
  • DefaultFormPanel addInnerPanel(DefaultFormPanel panel);
  • void removeComponent(JComponent component);
Clone this wiki locally