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

  • Start an intent from android
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • 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