Changeset 35606
- Timestamp:
- 10/14/09 03:19:59 (4 years ago)
- Location:
- lang/java/DesktopKit/trunk/src/com/mac/tarchan/desktop
- Files:
-
- 2 modified
-
FileAttachPanel.java (modified) (1 diff)
-
SexyControl.java (modified) (46 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/java/DesktopKit/trunk/src/com/mac/tarchan/desktop/FileAttachPanel.java
r35549 r35606 161 161 public String toString() 162 162 { 163 return attachFile != null ? attachFile.getAbsolutePath() : null;163 return attachFile != null ? attachFile.getAbsolutePath() : ""; 164 164 } 165 165 } -
lang/java/DesktopKit/trunk/src/com/mac/tarchan/desktop/SexyControl.java
r35603 r35606 141 141 */ 142 142 segmentedTextured, 143 // /** segmentedGradient */ 144 // segmentedGradient, 143 /** 144 * segmentedGradient 145 * 146 * @see <a href="http://lists.apple.com/archives/Java-dev/2008/May/msg00400.html">Re: + / - Buttons</a> 147 */ 148 segmentedGradient, 145 149 } 146 150 … … 195 199 /** 196 200 * JComboBox.isPopDown 201 * 202 * <pre> 197 203 * Type: {@link Boolean} 198 204 * Allowed Values: Boolean.TRUE, Boolean.FALSE 199 205 * Applies to: {@link JComboBox} 200 206 * This property alters the JComboBox's style to specify if it is intended to be a pop-down or a pop-up control. 207 * </pre> 201 208 */ 202 209 public static final String JComboBoxIsPopDownKey = "JComboBox.isPopDown"; … … 204 211 /** 205 212 * JComboBox.isSquare 213 * 214 * <pre> 206 215 * Type: {@link Boolean} 207 216 * Allowed Values: Boolean.TRUE, Boolean.FALSE 208 217 * Applies to: {@link JComboBox} 209 218 * This property changes the appearance of a JComboBox to have squared off edges. 219 * </pre> 210 220 */ 211 221 public static final String JComboBoxIsSquareKey = "JComboBox.isSquare"; … … 213 223 /** 214 224 * JProgressBar.style 225 * 226 * @see JProgressBarStyle 227 */ 228 public static final String JProgressBarStyleKey = "JProgressBar.style"; 229 230 /** 231 * JProgressBar.style 232 * 233 * <pre> 215 234 * Type: {@link String} 216 235 * Allowed Values: "circular" 217 236 * Applies to: {@link JProgressBar} 218 237 * This proper changes any indeterminate JProgressBar into a small circular spinning indeterminate progress indicator. 219 * 220 * @see JProgressBarStyle 221 */ 222 public static final String JProgressBarStyleKey = "JProgressBar.style"; 223 224 /** JProgressBar.style */ 238 * </pre> 239 */ 225 240 public enum JProgressBarStyle 226 241 { … … 233 248 /** 234 249 * JTableHeader.selectedColumn 250 * 251 * <pre> 235 252 * Type: {@link Number} 236 253 * Applies to: {@link JTableHeader} 237 254 * This property allows you to highlight the currently selected column of a JTable. 238 255 * The value should be set to the index of the column in the data model that you wish to be selected. 256 * </pre> 239 257 */ 240 258 public static final String JTableHeaderSelectedColumnKey = "JTableHeader.selectedColumn"; … … 242 260 /** 243 261 * JTableHeader.sortDirection 262 * 263 * @see JTableHeaderSortDirection 264 */ 265 public static final String JTableHeaderSortDirectionKey = "JTableHeader.sortDirection"; 266 267 /** 268 * JTableHeader.sortDirection 269 * 270 * <pre> 244 271 * Type: {@link String} 245 272 * Allowed Values: "ascending", "decending", null … … 250 277 * <b>Note:</b> The incorrect spelling "decending" for this properties allowed values is correct. 251 278 * Using the correctly spelled "descending" will have no effect in J2SE 5.0 on Mac OS X 10.5.0 252 * 253 * @see JTableHeaderSortDirection 254 */ 255 public static final String JTableHeaderSortDirectionKey = "JTableHeader.sortDirection"; 256 257 /** JTableHeader.sortDirection */ 279 * </pre> 280 */ 258 281 public enum JTableHeaderSortDirection 259 282 { … … 266 289 /** 267 290 * JTextField.variant 291 * 292 * @see JTextFieldVariant 293 */ 294 public static final String JTextFieldVariantKey = "JTextField.variant"; 295 296 /** 297 * JTextField.variant 298 * 299 * <pre> 268 300 * Type: {@link String} 269 301 * Allowed Values: "search" … … 271 303 * This property changes the text field into a search field. 272 304 * For additional functionality see the optional JTextField.Search.FindPopup, JTextField.Search.FindAction and JTextField.Search.CancelAction properties. 273 * 274 * @see JTextFieldVariant 275 */ 276 public static final String JTextFieldVariantKey = "JTextField.variant"; 277 278 /** JTextField.variant */ 305 * </pre> 306 */ 279 307 public enum JTextFieldVariant 280 308 { … … 287 315 /** 288 316 * JTextField.Search.FindPopup 317 * 318 * <pre> 289 319 * Type: {@link JPopupMenu} 290 320 * Allowed Values: Any JPopupMenu … … 292 322 * Setting this property attaches the provided JPopupMenu to the search control, and alters the icon to represent that there is a popup menu. 293 323 * Requires the JTextField.variant to be set to "search". 324 * </pre> 294 325 */ 295 326 public static final String JTextFieldSearchFindPopupKey = "JTextField.Search.FindPopup"; … … 297 328 /** 298 329 * JTextField.Search.FindAction 330 * 331 * <pre> 299 332 * Type: {@link ActionListener} 300 333 * Allowed Values: Any ActionListener … … 302 335 * Setting this property will trigger the provided ActionListener when the "find icon" in the search field is clicked. 303 336 * Requires the JTextField.variant to be set to "search". 337 * </pre> 304 338 */ 305 339 public static final String JTextFieldSearchFindActionKey = "JTextField.Search.FindAction"; … … 307 341 /** 308 342 * JTextField.Search.CancelAction 343 * 344 * <pre> 309 345 * Type: {@link ActionListener} 310 346 * Allowed Values: Any ActionListener … … 313 349 * Requires the JTextField.variant to be set to "search". 314 350 * <b>Note:</b> The cancel icon is only present when there is text in the search field. 351 * </pre> 315 352 */ 316 353 public static final String JTextFieldSearchCancelActionKey = "JTextField.Search.CancelAction"; … … 318 355 /** 319 356 * Window.documentModified 320 * Type: Boolean 357 * 358 * <pre> 359 * Type: {@link Boolean} 321 360 * Allowed Values: Boolean.TRUE, Boolean.FALSE 322 361 * Default Value: Boolean.FALSE … … 324 363 * This property adds the document dirty mark in the close button of the window. 325 364 * This is used to indicate that the document window has unsaved content, and attempts to close the window will request that the user save the document or discard changes. 365 * </pre> 326 366 */ 327 367 public static final String WindowDocumentModifiedKey = "Window.documentModified"; … … 329 369 /** 330 370 * Window.documentFile 371 * 372 * <pre> 331 373 * Type: {@link java.io.File} 332 374 * Allowed Values: Any … … 334 376 * This property adds a document proxy icon to the title bar of the window. 335 377 * <b>WARNING:</b> This property only applies to JRootPanes that have a heavyweight peer. 378 * </pre> 336 379 */ 337 380 public static final String WindowDocumentFileKey = "Window.documentFile"; … … 339 382 /** 340 383 * Window.style 341 * Type: String 384 * 385 * @see WindowStyle 386 */ 387 public static final String WindowStyleKey = "Window.style"; 388 389 /** 390 * Window.style 391 * 392 * <pre> 393 * Type: {@link String} 342 394 * Allowed Values: "small" 343 395 * Applies to: JRootPane … … 347 399 * This is similar to how native applications behave. 348 400 * <b>WARNING:</b> This property must be set before the heavyweight peer for the Window is created. Once addNotify() has been called on the component, causing creation of the heavyweight peer, changing this property has no effect. 349 * 350 * @see WindowStyle 351 */ 352 public static final String WindowStyleKey = "Window.style"; 353 354 /** Window.style */ 401 * </pre> 402 */ 355 403 public enum WindowStyle 356 404 { … … 361 409 /** 362 410 * Window.alpha 411 * 412 * <pre> 363 413 * Type: {@link Float} 364 414 * Allowed Values: Any value from 0.0 to 1.0 inclusive … … 367 417 * This property sets the opacity for the whole window and can be changed throughout the lifetime of the window. 368 418 * <b>WARNING:</b> This property only applies to JRootPanes that have a heavyweight peer. 419 * </pre> 369 420 */ 370 421 public static final String WindowAlphaKey = "Window.alpha"; … … 372 423 /** 373 424 * Window.shadow 374 * Type: Boolean 425 * 426 * <pre> 427 * Type: {@link Boolean} 375 428 * Allowed Values: Boolean.TRUE, Boolean.FALSE 376 429 * Default Value: Boolean.TRUE … … 379 432 * <b>WARNING:</b> This property must be set before the heavyweight peer for the Window is created. 380 433 * Once addNotify() has been called on the component, causing creation of the heavyweight peer, changing this property has no effect. 434 * </pre> 381 435 */ 382 436 public static final String WindowShadowKey = "Window.shadow"; … … 384 438 /** 385 439 * apple.awt.windowShadow.revalidateNow 386 * Type: Object 440 * 441 * <pre> 442 * Type: {@link Object} 387 443 * Allowed Values: Any 388 444 * Applies to JRootPane … … 392 448 * <b>WARNING:</b> This property only applies to JRootPanes that have a heavyweight peer. 393 449 * <b>IMPORTANT:</b> This property requires the Window.shadow property to be explicitly set to Boolean.TRUE 450 * </pre> 394 451 */ 395 452 public static final String AppleAwtWindowShadowRrevalidateNowKey = "apple.awt.windowShadow.revalidateNow"; … … 397 454 /** 398 455 * apple.awt.brushMetalLook 399 * Type: Boolean 456 * 457 * <pre> 458 * Type: {@link Boolean} 400 459 * Allowed Values: Boolean.TRUE, Boolean.FALSE 401 460 * Default Value: Undefined … … 404 463 * This client property overrides the corresponding system property, which determines its default value. 405 464 * <b>WARNING:</b> This property must be set before the heavyweight peer for the Window is created. Once addNotify() has been called on the component, causing creation of the heavyweight peer, changing this property has no effect. 465 * </pre> 406 466 */ 407 467 public static final String AppleAwtBrushMetalLookKey = "apple.awt.brushMetalLook"; … … 409 469 /** 410 470 * apple.awt.draggableWindowBackground 411 * Type: Boolean 471 * 472 * <pre> 473 * Type: {@link Boolean} 412 474 * Allowed Values: Boolean.TRUE, Boolean.FALSE 413 475 * Default Value: Boolean.FALSE … … 417 479 * <b>WARNING:</b> This property must be set before the heavyweight peer for the Window is created. 418 480 * Once addNotify() has been called on the component, causing creation of the heavyweight peer, changing this property has no effect. 481 * </pre> 419 482 */ 420 483 public static final String AppleAwtDraggableWindowBackgroundKey = "apple.awt.draggableWindowBackground"; … … 422 485 /** 423 486 * apple.awt.delayWindowOrdering 424 * Type: Boolean 487 * 488 * <pre> 489 * Type: {@link Boolean} 425 490 * Allowed Values: Boolean.TRUE, Boolean.FALSE 426 491 * Default Value: Boolean.FALSE … … 431 496 * <b>WARNING:</b> This property must be set before the heavyweight peer for the Window is created. 432 497 * Once addNotify() has been called on the component, causing creation of the heavyweight peer, changing this property has no effect. 498 * </pre> 433 499 */ 434 500 public static final String AppleAwtDelayWindowOrderingKey = "apple.awt.delayWindowOrdering"; … … 486 552 * @param group ボタングループ 487 553 * @param style スタイル 554 * @see #setSegmentButtonStyle(AbstractButton, JButtonButtonType, JButtonSegmentPosition) 488 555 */ 489 556 public static void setSegmentButtonStyle(ButtonGroup group, JButtonButtonType style) … … 532 599 * @param find 検索アクション 533 600 * @param cancel キャンセルアクション 601 * @see #JTextFieldVariantKey 602 * @see #JTextFieldSearchFindPopupKey 603 * @see #JTextFieldSearchFindActionKey 604 * @see #JTextFieldSearchCancelActionKey 534 605 */ 535 606 public static void setSearchTextField(JTextField textField, JPopupMenu popupMenu, ActionListener find, ActionListener cancel) … … 545 616 * 546 617 * @param progressBar プログレスバー 618 * @see JProgressBarStyle#circular 547 619 */ 548 620 public static void setCircularProgressBar(JProgressBar progressBar) … … 556 628 * 557 629 * @param comboBox コンボボックス 630 * @see #JComboBoxIsPopDownKey 558 631 */ 559 632 public static void setPopDownComboBox(JComboBox comboBox) … … 566 639 * 567 640 * @param comboBox コンボボックス 641 * @see #JComboBoxIsSquareKey 568 642 */ 569 643 public static void setSquareComboBox(JComboBox comboBox) … … 577 651 * @param window ウインドウ 578 652 * @param modified ドキュメント変更 653 * @see #WindowDocumentModifiedKey 579 654 */ 580 655 public static void setWindowDocumentModified(RootPaneContainer window, boolean modified) … … 590 665 * @param window ウインドウ 591 666 * @param file ファイル 667 * @see #WindowDocumentFileKey 592 668 */ 593 669 public static void setWindowDocumentFile(RootPaneContainer window, File file) … … 603 679 * @param window ウインドウ 604 680 * @param style スタイル 681 * @see #WindowStyleKey 605 682 */ 606 683 public static void setWindowStyle(RootPaneContainer window, WindowStyle style) … … 616 693 * @param window ウインドウ 617 694 * @param alpha Any value from 0.0 to 1.0 inclusive 695 * @see #WindowAlphaKey 618 696 */ 619 697 public static void setWindowAlpha(RootPaneContainer window, double alpha) … … 628 706 * @param window ウインドウ 629 707 * @param shadow シャドウ 708 * @see #WindowShadowKey 630 709 */ 631 710 public static void setWindowShadow(RootPaneContainer window, boolean shadow) … … 636 715 637 716 /** 638 * 717 * useBrushMetalLook 718 * 719 * @see #AppleAwtBrushMetalLookKey 639 720 */ 640 721 public static void useBrushMetalLook() … … 645 726 /** 646 727 * メニューバーをスクリーンに設定します。 728 * 729 * @see #AppleLafUseScreenMenuBarKey 647 730 */ 648 731 public static void useScreenMenuBar() … … 655 738 * 656 739 * @param aboutName アプリケーション名 740 * @see #AppleMenuAboutNameKey 657 741 */ 658 742 public static void setAppleMenuAboutName(String aboutName)
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)