Codota Logo
com.jgoodies.forms.builder
Code IndexAdd Codota to your IDE (free)

How to use com.jgoodies.forms.builder

Best Java code snippets using com.jgoodies.forms.builder (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: com.jgoodies/forms

/**
 * Returns the leading column. Unlike the superclass this method
 * honors the column offset.
 *
 * @return the leading column
 */
protected int getLeadingColumn() {
  int column = super.getLeadingColumn();
  return column + getLeadingColumnOffset() * getColumnIncrementSign();
}
origin: freeplane/freeplane

public void layout(final DefaultFormBuilder builder) {
  for(int i = 0; i < n; i++){
    builder.append("");
  }
}
origin: com.jgoodies/forms

/**
 * Builds and returns a left aligned button bar with the given buttons.
 *
 * @param buttons  an array of buttons to add
 * @return a left aligned button bar with the given buttons
 */
public static JPanel buildLeftAlignedBar(JButton[] buttons) {
  ButtonBarBuilder builder = new ButtonBarBuilder();
  builder.addGriddedButtons(buttons);
  builder.addGlue();
  return builder.getPanel();
}
origin: com.jgoodies/forms

/**
 * Ensures that the cursor is in the grid. In case it's beyond the
 * form's right hand side, the cursor is moved to the leading column
 * of the next line.
 */
private void ensureCursorColumnInGrid() {
  if (   ( isLeftToRight() && (getColumn() > getColumnCount()))
    || (!isLeftToRight() && (getColumn() < 1))) {
    nextLine();
  }
}
origin: com.jgoodies/forms

/**
 * Appends an internationalized titled separator for
 * the given resource key that spans all columns.
 *
 * @param resourceKey   the resource key for the separator title's text
 * @return the added titled separator
 */
public JComponent appendI15dSeparator(String resourceKey) {
  return appendSeparator(getI15dString(resourceKey));
}
origin: com.jgoodies/forms

/**
 * Creates and returns a <code>ButtonBarBuilder</code> with
 * initialized with a left to right button order.
 *
 * @return a button bar builder with button order set to left-to-right
 */
public static ButtonBarBuilder createLeftToRightBuilder() {
  ButtonBarBuilder builder = new ButtonBarBuilder();
  builder.setLeftToRightButtonOrder(true);
  return builder;
}
origin: com.jgoodies/forms

/**
 * Moves the cursor down several lines: increases the row by the
 * specified number of lines and sets the cursor to the leading column.
 *
 * @param lines  number of rows to move
 */
public final void nextLine(int lines) {
  nextRow(lines);
  setColumn(getLeadingColumn());
}
origin: com.jgoodies/forms

/**
 * Adds the standard gap for unrelated components.
 */
public void addUnrelatedGap() {
  appendUnrelatedComponentsGapRow();
  nextRow();
}
origin: com.jgoodies/forms

/**
 * Sets the cursor's extent to the given column span and row span.
 *
 * @param columnSpan    the new column span (grid width)
 * @param rowSpan       the new row span (grid height)
 */
public final void setExtent(int columnSpan, int rowSpan) {
  setColumnSpan(columnSpan);
  setRowSpan(rowSpan);
}
origin: com.jgoodies/forms

/**
 * Sets the horizontal and vertical alignment.
 *
 * @param hAlign the new horizontal alignment
 * @param vAlign the new vertical alignment
 */
public final void setAlignment(CellConstraints.Alignment hAlign,
                CellConstraints.Alignment vAlign) {
  setHAlignment(hAlign);
  setVAlignment(vAlign);
}
origin: com.jgoodies/forms

/**
 * Adds the standard horizontal gap for related components.
 *
 * @see LayoutStyle#getRelatedComponentsPadX()
 */
public void addRelatedGap() {
  appendRelatedComponentsGapColumn();
  nextColumn();
}
origin: com.jgoodies/forms

/**
 * Adds a glue that will be given the extra space,
 * if this box is larger than its preferred size.
 */
public void addGlue() {
  appendGlueColumn();
  nextColumn();
}
origin: com.jgoodies/forms

/**
 * Creates and returns a ButtonBarBuilder2 with
 * a left to right button order.
 *
 * @return a button bar builder with button order set to left-to-right
 */
public static ButtonBarBuilder2 createLeftToRightBuilder() {
  ButtonBarBuilder2 builder = new ButtonBarBuilder2();
  builder.setLeftToRightButtonOrder(true);
  return builder;
}
origin: com.jgoodies/forms

/**
 * Adds a glue that will be given the extra space,
 * if this button bar is larger than its preferred size.
 */
public void addGlue() {
  appendGlueColumn();
  nextColumn();
}
origin: com.jgoodies/forms

/**
 * Appends a glue column.
 *
 * @see #appendRelatedComponentsGapColumn()
 * @see #appendUnrelatedComponentsGapColumn()
 */
protected final void appendGlueColumn() {
  appendColumn(FormFactory.GLUE_COLSPEC);
}
origin: com.jgoodies/forms

/**
 * Returns the sign (-1 or 1) used to increment the cursor's column
 * when moving to the next column.
 *
 * @return -1 for right-to-left, 1 for left-to-right
 */
private int getColumnIncrementSign() {
  return isLeftToRight() ? 1 : -1;
}
origin: com.jgoodies/forms

/**
 * Appends a glue row.
 *
 * @see #appendRelatedComponentsGapRow()
 * @see #appendUnrelatedComponentsGapRow()
 */
protected final void appendGlueRow() {
  appendRow(FormFactory.GLUE_ROWSPEC);
}
origin: com.jgoodies/forms

/**
 * Moves to the next column.
 *
 * @param columns     number of columns to move
 */
private void nextColumn(int columns) {
  currentCellConstraints.gridX += columns * getColumnIncrementSign();
}
origin: net.java.abeille/abeille

/**
 * Returns the leading column. Unlike the superclass this method honors the
 * column offset.
 * 
 * @return the leading column
 */
protected int getLeadingColumn() {
  int column = super.getLeadingColumn();
  return column + getLeadingColumnOffset() * getColumnIncrementSign();
}
origin: com.jgoodies/jgoodiesforms

/**
 * Returns the leading column. Unlike the superclass this method
 * honors the column offset.
 *
 * @return the leading column
 */
@Override
protected int getLeadingColumn() {
  int column = super.getLeadingColumn();
  return column + getLeadingColumnOffset() * getColumnIncrementSign();
}
com.jgoodies.forms.builder

Most used classes

  • PanelBuilder
  • DefaultFormBuilder
  • ButtonBarBuilder
  • AbstractFormBuilder
    An abstract class that minimizes the effort required to implement non-visual builders that use the F
  • ButtonStackBuilder
    A non-visual builder that assists you in building consistent button stacks using the FormLayout. Thi
  • AbstractButtonPanelBuilder,
  • AbstractI15dPanelBuilder,
  • ButtonBarBuilder2,
  • AbstractBuilder,
  • FormBuilder
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now