public class AlgorithmsAndCategoriesBindPanel extends AbstractSimpleApplicationPanel<AlgorithmsManager> implements DataPropertiesListener
| Modifier and Type | Class and Description |
|---|---|
static class |
AlgorithmsAndCategoriesBindPanel.ItemType
Tipo do item a ser associado ao dado corrente.
|
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponentaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
AlgorithmsAndCategoriesBindPanel(AlgorithmsManager application,
DataInterface currentData,
java.util.SortedSet<DataInterface> availableItems,
java.util.SortedSet<DataInterface> selectedItems,
AlgorithmsAndCategoriesBindPanel.ItemType itemType)
Constrói a janela para associação de algoritmos e categorias.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBindListener(DataPropertiesListener bindListener)
Adiciona um listener de mudanças na associação entre algoritmos e
categorias.
|
csbase.logic.algorithms.CategorySet |
bindAlgorithmsToCategories(java.util.List<java.lang.Object> algorithmIds,
java.util.List<java.lang.String> categoryIds)
Associa efetivamente os algoritmos às categorias.
|
void |
bindData()
A partir dos nomes das categorias adicionadas pelo usuário, as categorias
serão efetivamente criadas no servidor.
|
protected void |
buildPanel()
Constrói o painel.
|
DataInterface |
getCurrentData()
Obtém o dado corrente, onde serão editadas as associações.
|
java.util.List<java.lang.Object> |
getSelectedAlgorithmsIds()
Obtém os identificadores dos algoritmos a serem associados.
|
java.util.List<java.lang.String> |
getSelectedCategoriesIds()
Obtém os identificadores das categorias a serem associadas ao dado
corrente.
|
void |
initializeData(DataInterface selectedAlgorithm,
java.util.SortedSet<DataInterface> availableCategories,
java.util.SortedSet<DataInterface> algorithmCategories)
Inicializa os dados do painel que relaciona categorias e algoritmos.
|
void |
notifyBindListener()
Notifica os listeners de que ocorreram mudanças na associação entre
algoritmos e categorias
|
void |
propertiesChanged(boolean wasModified)
Notifica se ocorreram ou não mudanças nas propriedades do dado.
|
void |
removeBindListener(DataPropertiesListener bindListener)
Remove um listener de mudanças na associação entre algoritmos e categorias.
|
void |
setCurrentData(DataInterface currentData)
Atribui o dado corrente selecionado no painel de seleção de dados.
|
csbase.logic.algorithms.CategorySet |
unbindAlgorithmsToCategories(java.util.List<java.lang.Object> algorithmIds,
java.util.List<java.lang.String> categoryIds)
Desassocia efetivamente os algoritmos das categorias.
|
void |
updateItems(java.util.SortedSet<DataInterface> availableData,
java.util.SortedSet<DataInterface> selectedData)
Atualiza os itens dos painéis de disponíveis e selecionados.
|
boolean |
wasModified()
Verifica se houve alteração nos itens de categorias associados ao dado
corrente.
|
getApplication, getClassString, getClassString, getString, getStringgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic AlgorithmsAndCategoriesBindPanel(AlgorithmsManager application, DataInterface currentData, java.util.SortedSet<DataInterface> availableItems, java.util.SortedSet<DataInterface> selectedItems, AlgorithmsAndCategoriesBindPanel.ItemType itemType)
application - aplicação que contém o painelcurrentData - dado corrente para edição das associaçõesavailableItems - dados a serem disponibilizados para associação no
dado correnteselectedItems - dados a serem previamente selecionados como associados
ao dado correnteitemType - tipo do item a ser associado ao dado correntepublic java.util.List<java.lang.String> getSelectedCategoriesIds()
public java.util.List<java.lang.Object> getSelectedAlgorithmsIds()
public DataInterface getCurrentData()
protected void buildPanel()
AbstractSimpleApplicationPanelbuildPanel in class AbstractSimpleApplicationPanel<AlgorithmsManager>public void updateItems(java.util.SortedSet<DataInterface> availableData, java.util.SortedSet<DataInterface> selectedData)
availableData - itens disponíveisselectedData - itens selecionadospublic void setCurrentData(DataInterface currentData)
currentData - dado corrente selecionadopublic void bindData()
public csbase.logic.algorithms.CategorySet bindAlgorithmsToCategories(java.util.List<java.lang.Object> algorithmIds,
java.util.List<java.lang.String> categoryIds)
algorithmIds - identificadores dos algoritmoscategoryIds - identificadores das categoriaspublic csbase.logic.algorithms.CategorySet unbindAlgorithmsToCategories(java.util.List<java.lang.Object> algorithmIds,
java.util.List<java.lang.String> categoryIds)
algorithmIds - identificadores dos algoritmoscategoryIds - identificadores das categoriaspublic void initializeData(DataInterface selectedAlgorithm, java.util.SortedSet<DataInterface> availableCategories, java.util.SortedSet<DataInterface> algorithmCategories)
selectedAlgorithm - algoritmo selecionadoavailableCategories - categorias disponíveisalgorithmCategories - categorias dos algoritmospublic boolean wasModified()
public void addBindListener(DataPropertiesListener bindListener)
bindListener - listener de mudanças na associação entre algoritmos e
categoriaspublic void removeBindListener(DataPropertiesListener bindListener)
bindListener - listener de mudanças na associação entre algoritmos e
categoriaspublic void notifyBindListener()
public void propertiesChanged(boolean wasModified)
DataPropertiesListenerpropertiesChanged in interface DataPropertiesListenerwasModified - se true, indica que as propriedades do dado foram
modificadas, caso contrário, indica que os valores permanecem os
originaisCopyright © 2015. All Rights Reserved.