+ "Select a bucket in the <b>Log to</b> list to apply changes<br><b>Note</b>: The target " + "bucket's ACL permissions are updated if necessary to allow logging<p> </center></html>"; JHtmlLabel introductionLabel = new JHtmlLabel(introductionText, hyperlinkListener); introductionLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel loggingStatusLabel = new JHtmlLabel("<html><b>Logging status</b></html>", hyperlinkListener); loggingStatusLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel loggedBucketLabel = new JHtmlLabel("Bucket:", hyperlinkListener); loggedBucketComboBox = new JComboBox(bucketNames); loggedBucketComboBox.insertItemAt("-- Choose a bucket --", 0); loggedBucketComboBox.addActionListener(this); JHtmlLabel prefixLabel = new JHtmlLabel("Log file prefix:", hyperlinkListener); prefixTextField = new JTextField(); prefixTextField.setToolTipText("Log files for the bucket start with this prefix. The prefix cannot be empty"); JHtmlLabel loggedToBucketLabel = new JHtmlLabel("Log to:", hyperlinkListener); loggedToBucketComboBox = new JComboBox(bucketNames); loggedToBucketComboBox.setToolTipText("Where the bucket's log files will be stored");
+ "Select a bucket in the <b>Log to</b> list to apply changes<br><b>Note</b>: The target " + "bucket's ACL permissions are updated if necessary to allow logging<p> </center></html>"; JHtmlLabel introductionLabel = new JHtmlLabel(introductionText, hyperlinkListener); introductionLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel loggingStatusLabel = new JHtmlLabel("<html><b>Logging status</b></html>", hyperlinkListener); loggingStatusLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel loggedBucketLabel = new JHtmlLabel("Bucket:", hyperlinkListener); loggedBucketComboBox = new JComboBox(bucketNames); loggedBucketComboBox.insertItemAt("-- Choose a bucket --", 0); loggedBucketComboBox.addActionListener(this); JHtmlLabel prefixLabel = new JHtmlLabel("Log file prefix:", hyperlinkListener); prefixTextField = new JTextField(); prefixTextField.setToolTipText("Log files for the bucket start with this prefix. The prefix cannot be empty"); JHtmlLabel loggedToBucketLabel = new JHtmlLabel("Log to:", hyperlinkListener); loggedToBucketComboBox = new JComboBox(bucketNames); loggedToBucketComboBox.setToolTipText("Where the bucket's log files will be stored");
okButton.addActionListener(this); JHtmlLabel bucketNameLabel = new JHtmlLabel("<html><b>Bucket name</b></html>", hyperlinkListener); bucketNameLabel.setHorizontalAlignment(JLabel.CENTER); bucketNameTextField.setEditable(false); JHtmlLabel requesterPaysLabel = new JHtmlLabel("<html><b>Requester Pays?</b></html>", hyperlinkListener); requesterPaysCheckBox = new JCheckBox(); requesterPaysCheckBox.setSelected(bucket.isRequesterPays());
JHtmlLabel questionLabel = new JHtmlLabel(question, null); container.add(questionLabel, new GridBagConstraints(0, rowIndex++, 2, 1, 0, 0, GridBagConstraints.CENTER, GridBagConstraints.NONE, insetsDefault, 0, 0));
okButton.addActionListener(this); JHtmlLabel bucketNameLabel = new JHtmlLabel("<html><b>Bucket name</b></html>", hyperlinkListener); bucketNameLabel.setHorizontalAlignment(JLabel.CENTER); bucketNameTextField.setEditable(false); JHtmlLabel requesterPaysLabel = new JHtmlLabel("<html><b>Requester Pays?</b></html>", hyperlinkListener); requesterPaysCheckBox = new JCheckBox(); requesterPaysCheckBox.setSelected(bucket.isRequesterPays());
JHtmlLabel questionLabel = new JHtmlLabel(question, null); container.add(questionLabel, new GridBagConstraints(0, rowIndex++, 2, 1, 0, 0, GridBagConstraints.CENTER, GridBagConstraints.NONE, insetsDefault, 0, 0));
JHtmlLabel introductionLabel = new JHtmlLabel(introductionText, hyperlinkListener); introductionLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel expiryTimeLabel = new JHtmlLabel("<html><b>Expiry Time</b> (Hours)</html>", hyperlinkListener); expiryTimeLabel.setHorizontalAlignment(JLabel.RIGHT); JHtmlLabel httpsUrlsLabel = new JHtmlLabel("<html><b>Secure HTTPS URLs?</b></html>", hyperlinkListener); httpsUrlsLabel.setHorizontalAlignment(JLabel.RIGHT); JHtmlLabel virtualHostLabel = new JHtmlLabel("<html><b>Bucket is a Virtual Host?</b></html>", hyperlinkListener); virtualHostLabel.setHorizontalAlignment(JLabel.RIGHT); JHtmlLabel requesterPaysLabel = new JHtmlLabel("<html><b>Bucket is Requester Pays?</b></html>", hyperlinkListener); requesterPaysLabel.setHorizontalAlignment(JLabel.RIGHT);
JHtmlLabel introductionLabel = new JHtmlLabel(introductionText, hyperlinkListener); introductionLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel expiryTimeLabel = new JHtmlLabel("<html><b>Expiry Time</b> (Hours)</html>", hyperlinkListener); expiryTimeLabel.setHorizontalAlignment(JLabel.RIGHT); JHtmlLabel httpsUrlsLabel = new JHtmlLabel("<html><b>Secure HTTPS URLs?</b></html>", hyperlinkListener); httpsUrlsLabel.setHorizontalAlignment(JLabel.RIGHT); JHtmlLabel virtualHostLabel = new JHtmlLabel("<html><b>Bucket is a Virtual Host?</b></html>", hyperlinkListener); virtualHostLabel.setHorizontalAlignment(JLabel.RIGHT); JHtmlLabel requesterPaysLabel = new JHtmlLabel("<html><b>Bucket is Requester Pays?</b></html>", hyperlinkListener); requesterPaysLabel.setHorizontalAlignment(JLabel.RIGHT);
JHtmlLabel descriptionLabel = new JHtmlLabel(descriptionText, hyperlinkListener); descriptionLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel passphraseLabel = new JHtmlLabel(passphraseLabelText, hyperlinkListener); passphraseTextField = new JTextField(); passphraseTextField.setName("LoginPassphrasePanel.Passphrase"); passphraseTextField.setToolTipText(passphraseTooltipText); JHtmlLabel passwordLabel = new JHtmlLabel(passwordLabelText, hyperlinkListener); passwordPasswordField = new JPasswordField(); passwordPasswordField.setName("LoginPassphrasePanel.Password");
JHtmlLabel descriptionLabel = new JHtmlLabel(descriptionText, hyperlinkListener); descriptionLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel passphraseLabel = new JHtmlLabel(passphraseLabelText, hyperlinkListener); passphraseTextField = new JTextField(); passphraseTextField.setName("LoginPassphrasePanel.Passphrase"); passphraseTextField.setToolTipText(passphraseTooltipText); JHtmlLabel passwordLabel = new JHtmlLabel(passwordLabelText, hyperlinkListener); passwordPasswordField = new JPasswordField(); passwordPasswordField.setName("LoginPassphrasePanel.Password");
/** * @param itemName * the name of this specific item in the GUI, which may be used to determine how the skinned * item should look or behave. * * @return * a <code>SkinnedJLabel</code> class implementation for the current skin, or a default * JHtmlLabel if no skin-specific implementation is available. */ public JHtmlLabel createSkinnedJHtmlLabel(String itemName, HyperlinkActivatedListener hyperlinkListener) { Object instance = instantiateClass(buildSkinnedClassName("SkinnedJHtmlLabel"), itemName); if (instance != null) { JHtmlLabel label = (JHtmlLabel) instance; label.setHyperlinkeActivatedListener(hyperlinkListener); return label; } else { return new JHtmlLabel(hyperlinkListener); } }
JHtmlLabel descriptionLabel = new JHtmlLabel(descriptionText, hyperlinkListener); descriptionLabel.setHorizontalAlignment(JLabel.CENTER); folderPathTextField = new JTextField(this.cockpitHomeFolder.getAbsolutePath()); JButton browseButton = new JButton(browseButtonText); browseButton.addActionListener(this); JHtmlLabel accountNicknamesLabel = new JHtmlLabel(accountNicknameText, hyperlinkListener); nicknamesTableModel = new ProviderCredentialsFileTableModel(); accountNicknameTable = new JTable(nicknamesTableModel); JScrollPane accountNicknamesScrollPane = new JScrollPane(accountNicknameTable); accountNicknamesScrollPane.setToolTipText(accountNicknameTooltipText); JHtmlLabel passwordLabel = new JHtmlLabel(passwordLabelText, hyperlinkListener); passwordPasswordField = new JPasswordField(); passwordPasswordField.setToolTipText(passwordTooltipText);
okButton.addActionListener(this); JHtmlLabel bucketNameLabel = new JHtmlLabel("<html><b>Bucket name</b></html>", hyperlinkListener); bucketNameLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel bucketLocationLabel = new JHtmlLabel("<html><b>Bucket location</b></html>", hyperlinkListener); bucketLocationLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel bucketNameIsValidDNSLabel = new JHtmlLabel("<html>DNS compatible?</html>", hyperlinkListener); bucketLocationLabel.setHorizontalAlignment(JLabel.CENTER); bucketNameIsValidDNSResultLabel = new JLabel("No"); bucketNameIsValidDNSExplanationLabel = new JHtmlLabel( "<html><font size=\"-2\">Because the 's3service.disable-dns-buckets' property is set, you<br>" + "may only create buckets in the U.S. location.</font></html>", hyperlinkListener); bucketLocationComboBox.setEnabled(false); } else { bucketNameIsValidDNSExplanationLabel = new JHtmlLabel( "<html><font size=\"-2\">If your bucket name is DNS-compatible, you can choose a storage location<br>" + "other than US Standard and may potentially use the bucket as a virtual host.</font></html>", hyperlinkListener); panel.add(bucketLocationComboBox, new GridBagConstraints(1, row, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insetsDefault, 0, 0)); panel.add(new JHtmlLabel("<html><font size=\"-2\">Choosing a location other than US Standard may incur additional S3 usage fees.</font></html>", hyperlinkListener), new GridBagConstraints(0, ++row, 2, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insetsDefault, 0, 0)); panel.add(buttonsPanel, new GridBagConstraints(0, ++row,
JHtmlLabel descriptionLabel = new JHtmlLabel(descriptionText, hyperlinkListener); descriptionLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel friendlyNameLabel = new JHtmlLabel(friendlyNameLabelText, hyperlinkListener); friendlyNameTextField = new JTextField(); friendlyNameTextField.setToolTipText(friendlyNameTooltipText); JHtmlLabel accessKeyLabel = new JHtmlLabel(accessKeyLabelText, hyperlinkListener); accessKeyTextField = new JTextField(); accessKeyTextField.setToolTipText(accessKeyTooltipText); JHtmlLabel secretKeyLabel = new JHtmlLabel(secretKeyLabelText, hyperlinkListener); secretKeyPasswordField = new JPasswordField(); secretKeyPasswordField.setToolTipText(secretKeyTooltipText); useDevPayCheckBox.setSelected(false); useDevPayCheckBox.addItemListener(this); JHtmlLabel awsUserTokenLabel = new JHtmlLabel(awsUserTokenLabelText, hyperlinkListener); awsUserTokenTextField = new JTextField(); awsUserTokenTextField.setToolTipText(awsUserTokenTooltipText);
JHtmlLabel descriptionLabel = new JHtmlLabel(descriptionText, hyperlinkListener); descriptionLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel friendlyNameLabel = new JHtmlLabel(friendlyNameLabelText, hyperlinkListener); friendlyNameTextField = new JTextField(); friendlyNameTextField.setToolTipText(friendlyNameTooltipText); JHtmlLabel accessKeyLabel = new JHtmlLabel(accessKeyLabelText, hyperlinkListener); accessKeyTextField = new JTextField(); accessKeyTextField.setToolTipText(accessKeyTooltipText); JHtmlLabel secretKeyLabel = new JHtmlLabel(secretKeyLabelText, hyperlinkListener); secretKeyPasswordField = new JPasswordField(); secretKeyPasswordField.setToolTipText(secretKeyTooltipText); useDevPayCheckBox.setSelected(false); useDevPayCheckBox.addItemListener(this); JHtmlLabel awsUserTokenLabel = new JHtmlLabel(awsUserTokenLabelText, hyperlinkListener); awsUserTokenTextField = new JTextField(); awsUserTokenTextField.setToolTipText(awsUserTokenTooltipText);
okButton.addActionListener(this); JHtmlLabel bucketNameLabel = new JHtmlLabel("<html><b>Bucket name</b></html>", hyperlinkListener); bucketNameLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel bucketLocationLabel = new JHtmlLabel("<html><b>Bucket location</b></html>", hyperlinkListener); bucketLocationLabel.setHorizontalAlignment(JLabel.CENTER); JHtmlLabel bucketNameIsValidDNSLabel = new JHtmlLabel("<html>DNS compatible?</html>", hyperlinkListener); bucketLocationLabel.setHorizontalAlignment(JLabel.CENTER); bucketNameIsValidDNSResultLabel = new JLabel("No"); bucketNameIsValidDNSExplanationLabel = new JHtmlLabel( "<html><font size=\"-2\">Because the 's3service.disable-dns-buckets' property is set, you<br>" + "may only create buckets in the U.S. location.</font></html>", hyperlinkListener); bucketLocationComboBox.setEnabled(false); } else { bucketNameIsValidDNSExplanationLabel = new JHtmlLabel( "<html><font size=\"-2\">If your bucket name is DNS-compatible, you can choose a storage location<br>" + "other than US Standard and may potentially use the bucket as a virtual host.</font></html>", hyperlinkListener); panel.add(bucketLocationComboBox, new GridBagConstraints(1, row, 1, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insetsDefault, 0, 0)); panel.add(new JHtmlLabel("<html><font size=\"-2\">Choosing a location other than US Standard may incur additional S3 usage fees.</font></html>", hyperlinkListener), new GridBagConstraints(0, ++row, 2, 1, 0, 0, GridBagConstraints.WEST, GridBagConstraints.NONE, insetsDefault, 0, 0)); panel.add(buttonsPanel, new GridBagConstraints(0, ++row,
JHtmlLabel descriptionLabel = new JHtmlLabel(descriptionText, hyperlinkListener); descriptionLabel.setHorizontalAlignment(JLabel.CENTER); folderPathTextField = new JTextField(this.cockpitHomeFolder.getAbsolutePath()); JButton browseButton = new JButton(browseButtonText); browseButton.addActionListener(this); JHtmlLabel accountNicknamesLabel = new JHtmlLabel(accountNicknameText, hyperlinkListener); nicknamesTableModel = new ProviderCredentialsFileTableModel(); accountNicknameTable = new JTable(nicknamesTableModel); JScrollPane accountNicknamesScrollPane = new JScrollPane(accountNicknameTable); accountNicknamesScrollPane.setToolTipText(accountNicknameTooltipText); JHtmlLabel passwordLabel = new JHtmlLabel(passwordLabelText, hyperlinkListener); passwordPasswordField = new JPasswordField(); passwordPasswordField.setToolTipText(passwordTooltipText);
/** * @param itemName * the name of this specific item in the GUI, which may be used to determine how the skinned * item should look or behave. * * @return * a <code>SkinnedJLabel</code> class implementation for the current skin, or a default * JHtmlLabel if no skin-specific implementation is available. */ public JHtmlLabel createSkinnedJHtmlLabel(String itemName, HyperlinkActivatedListener hyperlinkListener) { Object instance = instantiateClass(buildSkinnedClassName("SkinnedJHtmlLabel"), itemName); if (instance != null) { JHtmlLabel label = (JHtmlLabel) instance; label.setHyperlinkeActivatedListener(hyperlinkListener); return label; } else { return new JHtmlLabel(hyperlinkListener); } }
int row = 0; itemsDescription = new JHtmlLabel("", hyperlinkListener); container.add(itemsDescription, new GridBagConstraints(0, row, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, insetsDefault, 0, 0)); canonicalAddRemovePanel.add(addCanonical); container.add(new JHtmlLabel("<html><b>Canonical User Grantees</b></html>", hyperlinkListener), new GridBagConstraints(0, ++row, 2, 1, 0, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.HORIZONTAL, insetsZeroAtBottom, 0, 0)); container.add(new JScrollPane(canonicalGranteeTable), new GridBagConstraints(0, ++row, 2, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insetsZeroAtBottom, 0, 0)); container.add(new JHtmlLabel("<html><b>Group Grantees</b></html>", hyperlinkListener), new GridBagConstraints(0, ++row, 1, 1, 1, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.HORIZONTAL, insetsZeroAtBottom, 0, 0)); container.add(canonicalAddRemovePanel, new GridBagConstraints(0, ++row, 2, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insetsZeroAtBottom, 0, 0)); container.add(new JHtmlLabel("<html><b>Email Address Grantees</b></html>", hyperlinkListener), new GridBagConstraints(0, ++row, 1, 1, 1, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.HORIZONTAL, insetsZeroAtBottom, 0, 0)); container.add(groupAddRemovePanel,
int row = 0; itemsDescription = new JHtmlLabel("", hyperlinkListener); container.add(itemsDescription, new GridBagConstraints(0, row, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, insetsDefault, 0, 0)); canonicalAddRemovePanel.add(addCanonical); container.add(new JHtmlLabel("<html><b>Canonical User Grantees</b></html>", hyperlinkListener), new GridBagConstraints(0, ++row, 2, 1, 0, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.HORIZONTAL, insetsZeroAtBottom, 0, 0)); container.add(new JScrollPane(canonicalGranteeTable), new GridBagConstraints(0, ++row, 2, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insetsZeroAtBottom, 0, 0)); container.add(new JHtmlLabel("<html><b>Group Grantees</b></html>", hyperlinkListener), new GridBagConstraints(0, ++row, 1, 1, 1, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.HORIZONTAL, insetsZeroAtBottom, 0, 0)); container.add(canonicalAddRemovePanel, new GridBagConstraints(0, ++row, 2, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insetsZeroAtBottom, 0, 0)); container.add(new JHtmlLabel("<html><b>Email Address Grantees</b></html>", hyperlinkListener), new GridBagConstraints(0, ++row, 1, 1, 1, 0, GridBagConstraints.SOUTHWEST, GridBagConstraints.HORIZONTAL, insetsZeroAtBottom, 0, 0)); container.add(groupAddRemovePanel,