337 * 338 * @return The graphic in the tab. 339 */ 340 public final ObjectProperty<Node> graphicProperty() { 341 if (graphic == null) { 342 graphic = new SimpleObjectProperty<Node>(this, "graphic"); 343 } 344 return graphic; 345 } 346 347 private ObjectProperty<Node> content; 348 349 /** 350 * <p>The content to show within the main TabPane area. The content 351 * can be any Node such as UI controls or groups of nodes added 352 * to a layout container.</p> 353 * @param value the content node 354 */ 355 public final void setContent(Node value) { 356 contentProperty().set(value); 357 } 358 359 /** 360 * <p>The content associated with the tab.</p> 361 * 362 * @return The content associated with the tab. 363 */ 364 public final Node getContent() { 365 return content == null ? null : content.get(); 366 } 367 368 /** 369 * <p>The content associated with the tab.</p> 370 * @return the content property 371 */ 372 public final ObjectProperty<Node> contentProperty() { 373 if (content == null) { 374 content = new SimpleObjectProperty<Node>(this, "content"); 375 } 376 return content; | 337 * 338 * @return The graphic in the tab. 339 */ 340 public final ObjectProperty<Node> graphicProperty() { 341 if (graphic == null) { 342 graphic = new SimpleObjectProperty<Node>(this, "graphic"); 343 } 344 return graphic; 345 } 346 347 private ObjectProperty<Node> content; 348 349 /** 350 * <p>The content to show within the main TabPane area. The content 351 * can be any Node such as UI controls or groups of nodes added 352 * to a layout container.</p> 353 * @param value the content node 354 */ 355 public final void setContent(Node value) { 356 contentProperty().set(value); 357 if (isDisable() && (value != null)) { 358 value.setDisable(true); 359 } 360 } 361 362 /** 363 * <p>The content associated with the tab.</p> 364 * 365 * @return The content associated with the tab. 366 */ 367 public final Node getContent() { 368 return content == null ? null : content.get(); 369 } 370 371 /** 372 * <p>The content associated with the tab.</p> 373 * @return the content property 374 */ 375 public final ObjectProperty<Node> contentProperty() { 376 if (content == null) { 377 content = new SimpleObjectProperty<Node>(this, "content"); 378 } 379 return content; |