Like the concept. I set one of the docknodes in the demo to setFloatable(false); I expected it not to be able to be floated on the screen, but only to be docked... at best. But I still was able to float it . It would seem that it should be locked to this mode. ( Version 0.4 )
So, as a quick test, I modified the docknode a bit
*/
public void setFloating(boolean floating, Point2D translation) {
if (floating && !this.isFloatable()) {
return;
}
And it prevented the node from being picked up, which is great! Almost there, but it spewed forth a ton of error messages.. so I don't think that is "The fix" .. So I added this code in the DockTitleBar handle( MouseEvent event){
............
if (!dockNode.isFloating()) {
if( !dockNode.isFloatable()){
event.consume();
return;
}
That seemed to take care of the issue.. won't drag now, no errors.. The other thing I would like to see is not to be able to drop a drag on a specific DockNode. Maybe a setTargetable( false ) ??
Like the concept. I set one of the docknodes in the demo to setFloatable(false); I expected it not to be able to be floated on the screen, but only to be docked... at best. But I still was able to float it . It would seem that it should be locked to this mode. ( Version 0.4 )
So, as a quick test, I modified the docknode a bit
*/
public void setFloating(boolean floating, Point2D translation) {
if (floating && !this.isFloatable()) {
return;
}
And it prevented the node from being picked up, which is great! Almost there, but it spewed forth a ton of error messages.. so I don't think that is "The fix" .. So I added this code in the DockTitleBar handle( MouseEvent event){
............
if (!dockNode.isFloating()) {
if( !dockNode.isFloatable()){
event.consume();
return;
}
That seemed to take care of the issue.. won't drag now, no errors.. The other thing I would like to see is not to be able to drop a drag on a specific DockNode. Maybe a setTargetable( false ) ??