8252722: More Swing plaf APIs that rely on default constructors

Reviewed-by: prr
This commit is contained in:
Prasanta Sadhukhan 2020-09-24 16:19:20 +00:00
parent 3495c19d1a
commit 527a30930e
36 changed files with 468 additions and 4 deletions

View file

@ -96,6 +96,11 @@ public class BasicTableUI extends TableUI
*/
private boolean isFileList = false;
/**
* Constructs a {@code BasicTableUI}.
*/
public BasicTableUI() {}
//
// Helper class for keyboard actions
//
@ -760,6 +765,11 @@ public class BasicTableUI extends TableUI
// its functionality has been moved into Handler. If you need to add
// new functionality add it to the Handler, but make sure this
// class calls into the Handler.
/**
* Constructs a {@code KeyHandler}.
*/
public KeyHandler() {}
public void keyPressed(KeyEvent e) {
getHandler().keyPressed(e);
}
@ -786,6 +796,11 @@ public class BasicTableUI extends TableUI
// its functionality has been moved into Handler. If you need to add
// new functionality add it to the Handler, but make sure this
// class calls into the Handler.
/**
* Constructs a {@code FocusHandler}.
*/
public FocusHandler() {}
public void focusGained(FocusEvent e) {
getHandler().focusGained(e);
}
@ -808,6 +823,11 @@ public class BasicTableUI extends TableUI
// its functionality has been moved into Handler. If you need to add
// new functionality add it to the Handler, but make sure this
// class calls into the Handler.
/**
* Constructs a {@code MouseInputHandler}.
*/
public MouseInputHandler() {}
public void mouseClicked(MouseEvent e) {
getHandler().mouseClicked(e);
}