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

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

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

origin: org.swinglabs.swingx/swingx-all

/**
 * Adjusts internal state after table's column model property has changed.
 * Handles cleanup of listeners to the old/new columnModel (Note, that
 * it listens to the column model only if it can control column visibility).
 * Updates content of popup.
 * 
 * @param oldModel the old <code>TableColumnModel</code> we had been listening to.
 */
protected void updateFromColumnModelChange(TableColumnModel oldModel) {
  if (oldModel != null) {
    oldModel.removeColumnModelListener(columnModelListener);
  }
  populatePopup();
  if (canControl()) {
    table.getColumnModel().addColumnModelListener(getColumnModelListener());
  }
}
 
origin: org.swinglabs.swingx/swingx-core

/**
 * Adjusts internal state after table's column model property has changed.
 * Handles cleanup of listeners to the old/new columnModel (Note, that
 * it listens to the column model only if it can control column visibility).
 * Updates content of popup.
 * 
 * @param oldModel the old <code>TableColumnModel</code> we had been listening to.
 */
protected void updateFromColumnModelChange(TableColumnModel oldModel) {
  if (oldModel != null) {
    oldModel.removeColumnModelListener(columnModelListener);
  }
  populatePopup();
  if (canControl()) {
    table.getColumnModel().addColumnModelListener(getColumnModelListener());
  }
}
 
origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

/**
 * Adjusts internal state after table's column model property has changed.
 * Handles cleanup of listeners to the old/new columnModel (Note, that
 * it listens to the column model only if it can control column visibility).
 * Updates content of popup.
 * 
 * @param oldModel the old <code>TableColumnModel</code> we had been listening to.
 */
protected void updateFromColumnModelChange(TableColumnModel oldModel) {
  if (oldModel != null) {
    oldModel.removeColumnModelListener(columnModelListener);
  }
  populatePopup();
  if (canControl()) {
    table.getColumnModel().addColumnModelListener(getColumnModelListener());
  }
}
 
origin: org.codehaus.jtstand/jtstand-desktop

/**
 * Adjusts internal state after table's column model property has changed.
 * Handles cleanup of listeners to the old/new columnModel (Note, that
 * it listens to the column model only if it can control column visibility).
 * Updates content of popup.
 * 
 * @param oldModel the old <code>TableColumnModel</code> we had been listening to.
 */
protected void updateFromColumnModelChange(TableColumnModel oldModel) {
  if (oldModel != null) {
    oldModel.removeColumnModelListener(columnModelListener);
  }
  populatePopup();
  if (canControl()) {
    table.getColumnModel().addColumnModelListener(getColumnModelListener());
  }
}
 
origin: com.haulmont.thirdparty/swingx-core

/**
 * Adjusts internal state after table's column model property has changed.
 * Handles cleanup of listeners to the old/new columnModel (Note, that
 * it listens to the column model only if it can control column visibility).
 * Updates content of popup.
 * 
 * @param oldModel the old <code>TableColumnModel</code> we had been listening to.
 */
protected void updateFromColumnModelChange(TableColumnModel oldModel) {
  if (oldModel != null) {
    oldModel.removeColumnModelListener(columnModelListener);
  }
  populatePopup();
  if (canControl()) {
    table.getColumnModel().addColumnModelListener(getColumnModelListener());
  }
}
 
org.jdesktop.swingx.tableColumnControlButtongetColumnModelListener

Javadoc

Returns the listener to table's column model. The listener is lazily created if necessary.

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,
  • createColumnVisibilityAction,
  • createControlAction,
  • createTablePropertyChangeListener,
  • getAction,
  • getColumnControlActionKeys,
  • getColumnControlPopup,
  • getColumnVisibilityActions

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JPanel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Best IntelliJ 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