neilcsmith-net commented on PR #7239:
URL: https://github.com/apache/netbeans/pull/7239#issuecomment-2039992048

   That could involve widgets knowing far more about how they're displayed than 
I wanted to expose.  At the moment a widget is just an instance registered in 
the layer file system that produces a list of logical elements that it wants to 
display (eg. text, image, link). How those elements are rendered is in the 
hands of the displayer.
   
   See eg. 
https://github.com/apache/netbeans/blob/55834afe83a504f9854bab2297f776cc3fe010ac/nb/ide.dashboard/src/org/netbeans/modules/ide/dashboard/HelpWidget.java
 and the available element types 
https://github.com/apache/netbeans/blob/55834afe83a504f9854bab2297f776cc3fe010ac/platform/api.dashboard/src/org/netbeans/spi/dashboard/WidgetElement.java
  These things deliberately know nothing about how they are displayed, or have 
any reference to grids, size or Swing.
   
   Fluid sized widgets could be a thing, along with a spacer (empty) widget, to 
achieve your suggested rendering.  It was a lot easier to achieve the fluid 
grid with fixed size widgets though!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to