use custom behavior class for TableView

2013-08-09 Thread Sven Ehrke

Hi, 

I would like to use a custom Behavior class for a TableView and so I started as 
usual with a 'MyTableViewSkin' 
class which I can activate via the css file. In order to reuse functionality of 
'TableViewSkin' and 'TableViewBehavior' I started to 
let ' MyTableViewSkin' inherit from 'TableViewSkin and planned to let it's 
constructor simply call the super constructor like this: 


super(tableView, new MyTableViewBehavior(tableView)); 


Unfortunately 'TableViewSkin' only defines the constructor 


'TableViewSkin(final TableView tableView) ' 


and thus hides the one from ' TableViewSkinBase ' : 


TableViewSkinBase(final C control, final B behavior) 


which makes it impossible to call it. 
Was this done on purpose and if yes how am I supposed to attach a custom 
behavior class ? 




Thanks! 


Regards, 
Sven 



Re: TableView column resize problem

2013-07-27 Thread Sven Ehrke
Done: https://javafx-jira.kenai.com/browse/RT-31961 

Thank you! 

- Sven 

- Original Message -

> Please file a bug - this is not currently known. This is likely
> related
> to all the scenegraph performance work that has been done recently.

> -- Jonathan

> On 27/07/2013 6:16 a.m., Sven Ehrke wrote:
> > Hi,
> >
> > since b99 resizing of columns using the mouse on the column
> > separators of the table header does not work smoothly anymore. The
> > mouse
> > even looses hold of the resize handle. With b97 this worked fine.
> >
> > This can be reproduced even without any items in the table:
> >
> > ~~
> >
> > public class TableViewDemo2 extends Application {
> >
> > public static void main(String[] args) {
> > launch(args);
> > }
> >
> > @Override
> > public void start(final Stage stage) throws Exception {
> > stage.setTitle("TableView Demo");
> >
> > final StackPane pane = new StackPane();
> >
> > final TableView tableView = new TableView<>();
> > final TableColumn columnA = new TableColumn<>("A");
> > final TableColumn columnB = new TableColumn<>("B");
> > tableView.getColumns().addAll(columnA, columnB);
> > pane.getChildren().addAll(tableView);
> >
> > Scene scene = new Scene(pane, 300, 500, Color.DODGERBLUE);
> > stage.setScene(scene);
> > stage.show();
> > }
> >
> > }
> >
> > ~~
> >
> > Is this already a known problem ?
> >
> > Thanks,
> >
> > Sven


TableView column resize problem

2013-07-26 Thread Sven Ehrke
Hi, 

since b99 resizing of columns using the mouse on the column separators of the 
table header does not work smoothly anymore. The mouse 
even looses hold of the resize handle. With b97 this worked fine. 

This can be reproduced even without any items in the table: 

~~ 

public class TableViewDemo2 extends Application { 

public static void main(String[] args) { 
launch(args); 
} 

@Override 
public void start(final Stage stage) throws Exception { 
stage.setTitle("TableView Demo"); 

final StackPane pane = new StackPane(); 

final TableView tableView = new TableView<>(); 
final TableColumn columnA = new TableColumn<>("A"); 
final TableColumn columnB = new TableColumn<>("B"); 
tableView.getColumns().addAll(columnA, columnB); 
pane.getChildren().addAll(tableView); 

Scene scene = new Scene(pane, 300, 500, Color.DODGERBLUE); 
stage.setScene(scene); 
stage.show(); 
} 

} 

~~ 

Is this already a known problem ? 

Thanks, 

Sven