Tabnine Logo
ColumnControlButton.createColumnVisibilityAction
Code IndexAdd Tabnine to your IDE (free)

How to use
createColumnVisibilityAction
method
in
org.jdesktop.swingx.table.ColumnControlButton

Best Java code snippets using org.jdesktop.swingx.table.ColumnControlButton.createColumnVisibilityAction (Showing top 5 results out of 315)

origin: org.codehaus.jtstand/jtstand-desktop

/**
 * Creates and adds a ColumnVisiblityAction for every column that should be
 * togglable via the column control. <p>
 * 
 * Here: all table columns contained in the <code>TableColumnModel</code> - 
 * visible and invisible columns - to <code>createColumnVisibilityAction</code> and
 * adds all not <code>null</code> return values.
 * 
 * <p>
 * PRE: canControl()
 * 
 * @see #createColumnVisibilityAction
 */
protected void createVisibilityActions() {
  List<TableColumn> columns = table.getColumns(true);
  for (TableColumn column : columns) {
    ColumnVisibilityAction action = createColumnVisibilityAction(column);
    if (action != null) {
      getColumnVisibilityActions().add(action);
    }
  }
}
origin: org.swinglabs.swingx/swingx-core

/**
 * Creates and adds a ColumnVisiblityAction for every column that should be
 * togglable via the column control. <p>
 * 
 * Here: all table columns contained in the <code>TableColumnModel</code> - 
 * visible and invisible columns - to <code>createColumnVisibilityAction</code> and
 * adds all not <code>null</code> return values.
 * 
 * <p>
 * PRE: canControl()
 * 
 * @see #createColumnVisibilityAction
 */
protected void createVisibilityActions() {
  List<TableColumn> columns = table.getColumns(true);
  for (TableColumn column : columns) {
    ColumnVisibilityAction action = createColumnVisibilityAction(column);
    if (action != null) {
      getColumnVisibilityActions().add(action);
    }
  }
}
origin: org.swinglabs.swingx/swingx-all

/**
 * Creates and adds a ColumnVisiblityAction for every column that should be
 * togglable via the column control. <p>
 * 
 * Here: all table columns contained in the <code>TableColumnModel</code> - 
 * visible and invisible columns - to <code>createColumnVisibilityAction</code> and
 * adds all not <code>null</code> return values.
 * 
 * <p>
 * PRE: canControl()
 * 
 * @see #createColumnVisibilityAction
 */
protected void createVisibilityActions() {
  List<TableColumn> columns = table.getColumns(true);
  for (TableColumn column : columns) {
    ColumnVisibilityAction action = createColumnVisibilityAction(column);
    if (action != null) {
      getColumnVisibilityActions().add(action);
    }
  }
}
origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * Creates and adds a ColumnVisiblityAction for every column that should be
 * togglable via the column control. <p>
 * 
 * Here: all table columns contained in the <code>TableColumnModel</code> - 
 * visible and invisible columns - to <code>createColumnVisibilityAction</code> and
 * adds all not <code>null</code> return values.
 * 
 * <p>
 * PRE: canControl()
 * 
 * @see #createColumnVisibilityAction
 */
protected void createVisibilityActions() {
  List<TableColumn> columns = table.getColumns(true);
  for (TableColumn column : columns) {
    ColumnVisibilityAction action = createColumnVisibilityAction(column);
    if (action != null) {
      getColumnVisibilityActions().add(action);
    }
  }
}
origin: com.haulmont.thirdparty/swingx-core

/**
 * Creates and adds a ColumnVisiblityAction for every column that should be
 * togglable via the column control. <p>
 * 
 * Here: all table columns contained in the <code>TableColumnModel</code> - 
 * visible and invisible columns - to <code>createColumnVisibilityAction</code> and
 * adds all not <code>null</code> return values.
 * 
 * <p>
 * PRE: canControl()
 * 
 * @see #createColumnVisibilityAction
 */
protected void createVisibilityActions() {
  List<TableColumn> columns = table.getColumns(true);
  for (TableColumn column : columns) {
    ColumnVisibilityAction action = createColumnVisibilityAction(column);
    if (action != null) {
      getColumnVisibilityActions().add(action);
    }
  }
}
org.jdesktop.swingx.tableColumnControlButtoncreateColumnVisibilityAction

Javadoc

Creates and returns a ColumnVisibilityAction for the given TableColumn. The return value might be null, f.i. if the column should not be allowed to be toggled.

Popular methods of ColumnControlButton

  • populatePopup
    Populates the popup from scratch. If applicable, creates and adds column visibility actions. Always
  • <init>
    Creates a column control button for the table. The button uses the given icon and has no text.
  • createVisibilityActions
    Creates and adds a ColumnVisiblityAction for every column that should be togglable via the column co
  • getAdditionalActions
    creates and returns a list of additional Actions to add to the popup. Here: the actions are looked u
  • togglePopup
    Toggles the popup component's visibility. This method is called by this control's default action. H
  • addAdditionalActionItems
    Adds additional actions to the popup, if additionalActionsVisible is true, does nothing otherwise. H
  • addVisibilityActionItems
    Adds visibility actions into the popup view. Here: delegates the list of actions to the DefaultColum
  • canControl
    Method to check if we can control column visibility POST: if true we can be sure to have an extended
  • clearAll
    removes all components from the popup, making sure to release all columnVisibility actions.
  • clearColumnVisibilityActions
    Releases actions and clears list of actions.
  • createColumnControlPopup
    Factory method to return a ColumnControlPopup. Subclasses can override to hook custom implementation
  • createColumnModelListener
    Creates the listener to columnModel. Subclasses are free to roll their own. Implementation note: th
  • createColumnControlPopup,
  • createColumnModelListener,
  • createControlAction,
  • createTablePropertyChangeListener,
  • getAction,
  • getColumnControlActionKeys,
  • getColumnControlPopup,
  • getColumnModelListener,
  • getColumnVisibilityActions

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now