| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.ui; |
| | |
| | | import javax.swing.JComponent; |
| | | import javax.swing.JLabel; |
| | | import javax.swing.JPanel; |
| | | import javax.swing.JScrollPane; |
| | | import javax.swing.JTable; |
| | | import javax.swing.SwingConstants; |
| | | import javax.swing.SwingUtilities; |
| | |
| | | import org.opends.guitools.controlpanel.ui.renderer.BaseDNCellRenderer; |
| | | import org.opends.guitools.controlpanel.ui.renderer.CustomCellRenderer; |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.opends.guitools.controlpanel.util.ViewPositions; |
| | | import org.opends.messages.Message; |
| | | import org.opends.messages.MessageBuilder; |
| | | import org.opends.server.types.DN; |
| | |
| | | */ |
| | | public void updateContents(ServerDescriptor desc) |
| | | { |
| | | JScrollPane scroll = Utilities.getContainingScroll(this); |
| | | ViewPositions pos; |
| | | if (scroll != null) |
| | | { |
| | | pos = Utilities.getViewPositions(scroll); |
| | | } |
| | | else |
| | | { |
| | | pos = Utilities.getViewPositions(this); |
| | | } |
| | | |
| | | Collection<OpenDsException> exceptions = desc.getExceptions(); |
| | | if (exceptions.size() == 0) |
| | | { |
| | |
| | | authenticate.setVisible(!isAuthenticated && isRunning); |
| | | |
| | | recalculateSizes(); |
| | | |
| | | Utilities.updateViewPositions(pos); |
| | | } |
| | | |
| | | /** |