com.openindex.openestate.tool.utils
Class JAdressPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by com.openindex.openestate.tool.utils.JAdressPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JAdressPanel
extends JPanel

Allgemeines Panel zur Bearbeitung einer Adresse.
$Id: JAdressPanel.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  JTextField adressCityField
           
protected  JTextField adressCityPartField
           
protected  JComboBox adressCountryField
           
protected  JPanel adressFormPanel
           
protected  JTextField adressPostalCodeField
           
protected  JTextField adressRegionField
           
protected  JTextField adressStreetField
           
protected  JTextField adressStreetNrField
           
protected  JTextField companyBusinessField
           
protected  JTextField companyDepartmentField
           
protected  JTextField companyFaxField
           
protected  JPanel companyFormPanel
           
protected  JTextField companyMailField
           
protected  JTextField companyNameAdditionField
           
protected  JTextField companyNameField
           
protected  JTextField companyPhoneField
           
protected  JTextField companyPhoneMobileField
           
protected  JTextField companyPositionField
           
protected  JTextField companyTypeField
           
protected  JButton companyWebsiteButton
           
protected  JTextField companyWebsiteField
           
protected  boolean isCompanyAdress
           
protected  boolean isPersonAdress
           
static int LAYOUT_1_COLS
           
static int LAYOUT_2_COLS
           
protected  JTextField personFaxField
           
protected  JTextField personFirstNameField
           
protected  JPanel personFormPanel
           
protected  JComboBox personGenderField
           
protected  JTextField personLastNameField
           
protected  JTextField personMailField
           
protected  JTextField personMiddleNameField
           
protected  JTextField personPhoneField
           
protected  JTextField personPhoneMobileField
           
protected  JTextField personTitleField
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JAdressPanel()
           
JAdressPanel(SimpleAdressImpl adress)
           
JAdressPanel(SimpleAdressImpl adress, int layout)
           
JAdressPanel(SimpleAdressImpl adress, int layout, int labelColWidth)
           
 
Method Summary
protected  com.jgoodies.forms.builder.DefaultFormBuilder buildAdressPanel(String firstColWidth)
           
protected  JComponent buildAdressPanelTitle()
           
protected  com.jgoodies.forms.builder.DefaultFormBuilder buildCompanyPanel(String firstColWidth)
           
protected  JComponent buildCompanyPanelTitle()
           
protected  com.jgoodies.forms.builder.DefaultFormBuilder buildPersonPanel(String firstColWidth)
           
protected  JComponent buildPersonPanelTitle()
           
 String getSelectedCountry()
           
protected  void init()
           
 void initInputs()
           
 boolean isModifiedInput()
           
 boolean isValidInput()
           
 void loadAdress(SimpleAdressImpl adress)
           
protected  void registerValidation(JComponent field)
           
protected  void registerValidation(JComponent field, ValidationRule rule)
           
 void saveAdress(SimpleAdressImpl adress)
           
 void setEditable(boolean set)
           
 void setEnabled(boolean set)
           
 void setValidationEnabled(boolean set)
           
 void validateInputs()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, 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, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, 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, hide, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LAYOUT_1_COLS

public static final int LAYOUT_1_COLS
See Also:
Constant Field Values

LAYOUT_2_COLS

public static final int LAYOUT_2_COLS
See Also:
Constant Field Values

adressFormPanel

protected JPanel adressFormPanel

adressStreetField

protected JTextField adressStreetField

adressStreetNrField

protected JTextField adressStreetNrField

adressCityField

protected JTextField adressCityField

adressCityPartField

protected JTextField adressCityPartField

adressPostalCodeField

protected JTextField adressPostalCodeField

adressCountryField

protected JComboBox adressCountryField

adressRegionField

protected JTextField adressRegionField

personFormPanel

protected JPanel personFormPanel

personGenderField

protected JComboBox personGenderField

personFirstNameField

protected JTextField personFirstNameField

personMiddleNameField

protected JTextField personMiddleNameField

personLastNameField

protected JTextField personLastNameField

personMailField

protected JTextField personMailField

personPhoneField

protected JTextField personPhoneField

personPhoneMobileField

protected JTextField personPhoneMobileField

personFaxField

protected JTextField personFaxField

personTitleField

protected JTextField personTitleField

companyFormPanel

protected JPanel companyFormPanel

companyNameField

protected JTextField companyNameField

companyNameAdditionField

protected JTextField companyNameAdditionField

companyTypeField

protected JTextField companyTypeField

companyPositionField

protected JTextField companyPositionField

companyBusinessField

protected JTextField companyBusinessField

companyDepartmentField

protected JTextField companyDepartmentField

companyMailField

protected JTextField companyMailField

companyPhoneField

protected JTextField companyPhoneField

companyPhoneMobileField

protected JTextField companyPhoneMobileField

companyFaxField

protected JTextField companyFaxField

companyWebsiteField

protected JTextField companyWebsiteField

companyWebsiteButton

protected JButton companyWebsiteButton

isPersonAdress

protected boolean isPersonAdress

isCompanyAdress

protected boolean isCompanyAdress
Constructor Detail

JAdressPanel

public JAdressPanel()

JAdressPanel

public JAdressPanel(SimpleAdressImpl adress)

JAdressPanel

public JAdressPanel(SimpleAdressImpl adress,
                    int layout)

JAdressPanel

public JAdressPanel(SimpleAdressImpl adress,
                    int layout,
                    int labelColWidth)
Method Detail

buildAdressPanel

protected com.jgoodies.forms.builder.DefaultFormBuilder buildAdressPanel(String firstColWidth)

buildAdressPanelTitle

protected JComponent buildAdressPanelTitle()

buildCompanyPanel

protected com.jgoodies.forms.builder.DefaultFormBuilder buildCompanyPanel(String firstColWidth)

buildCompanyPanelTitle

protected JComponent buildCompanyPanelTitle()

buildPersonPanel

protected com.jgoodies.forms.builder.DefaultFormBuilder buildPersonPanel(String firstColWidth)

buildPersonPanelTitle

protected JComponent buildPersonPanelTitle()

getSelectedCountry

public String getSelectedCountry()

init

protected void init()

initInputs

public void initInputs()

isModifiedInput

public boolean isModifiedInput()

isValidInput

public boolean isValidInput()

loadAdress

public void loadAdress(SimpleAdressImpl adress)

registerValidation

protected void registerValidation(JComponent field)

registerValidation

protected void registerValidation(JComponent field,
                                  ValidationRule rule)

saveAdress

public void saveAdress(SimpleAdressImpl adress)

setEditable

public void setEditable(boolean set)

setEnabled

public void setEnabled(boolean set)
Overrides:
setEnabled in class JComponent

setValidationEnabled

public void setValidationEnabled(boolean set)

validateInputs

public void validateInputs()


Copyright © 2012 OpenEstate. All Rights Reserved.