ActionListener
, ImageObserver
, MenuContainer
, Serializable
, EventListener
, Accessible
, ListSelectionListener
, RootPaneContainer
, WindowConstants
, HyperlinkActivatedListener
public class ManageDistributionsDialog extends JDialog implements ActionListener, ListSelectionListener, HyperlinkActivatedListener
The first time a bucket is selected its logging status is retrieved from S3 and the details are displayed, as well as being cached so further lookups aren't necessary. The logging status is modified by choosing/changing the target log bucket.
Component.BaselineResizeBehavior
Dialog.ModalExclusionType, Dialog.ModalityType
Window.Type
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
DEFAULT_MODALITY_TYPE
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
Constructor | Description |
---|---|
ManageDistributionsDialog(Frame ownerFrame,
CloudFrontService cloudFrontService,
String[] bucketNames,
HyperlinkActivatedListener hyperlinkListener) |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed(ActionEvent event) |
|
void |
followHyperlink(URL url,
String target) |
This method is triggered when an HTML link is activated, such as by an HTML link in a
JHtmlLabel - any class that implements this listener should do something useful
with the triggered hyperlink, preferrably opening it in a web browser. |
static void |
main(String[] args) |
TODO: Remove once testing is complete.
|
static void |
showDialog(Frame ownerFrame,
CloudFrontService cloudFrontService,
String[] bucketNames,
HyperlinkActivatedListener hyperlinkListener) |
Dialog box for displaying and modifying CloudFront distributions.
|
void |
valueChanged(ListSelectionEvent e) |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
public ManageDistributionsDialog(Frame ownerFrame, CloudFrontService cloudFrontService, String[] bucketNames, HyperlinkActivatedListener hyperlinkListener)
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
public static void showDialog(Frame ownerFrame, CloudFrontService cloudFrontService, String[] bucketNames, HyperlinkActivatedListener hyperlinkListener)
ownerFrame
- the frame that will own the dialog.cloudFrontService
- a CloudFrontService that will be used to query and update distributions. This
service must be initialised with the necessary AWS credentials to perform the
API operations.hyperlinkListener
- the listener that will act on any hyperlink events triggered by the user clicking on HTTP links.public void followHyperlink(URL url, String target)
HyperlinkActivatedListener
JHtmlLabel
- any class that implements this listener should do something useful
with the triggered hyperlink, preferrably opening it in a web browser.followHyperlink
in interface HyperlinkActivatedListener
url
- the url contained in the href.target
- the target attribute of the href, may be null if the attribute is not present.