()
| 2857 | } |
| 2858 | |
| 2859 | @Override |
| 2860 | public boolean animate() { |
| 2861 | if (hideShowMotion != null) { |
| 2862 | Form f = getComponentForm(); |
| 2863 | final Container actualPane = f.getActualPane(); |
| 2864 | int val = hideShowMotion.getValue(); |
| 2865 | setY(val); |
| 2866 | if (!layered) { |
| 2867 | actualPane.setY(actualPaneInitialY + val); |
| 2868 | actualPane.setHeight(actualPaneInitialH - val); |
| 2869 | actualPane.doLayout(); |
| 2870 | } |
| 2871 | f.repaint(); |
| 2872 | boolean finished = hideShowMotion.isFinished(); |
| 2873 | if (finished) { |
| 2874 | f.deregisterAnimated(this); |
| 2875 | hideShowMotion = null; |
| 2876 | } |
| 2877 | return !finished; |
| 2878 | } |
| 2879 | return false; |
| 2880 | } |
| 2881 | |
| 2882 | private void initVars(Container actualPane) { |
| 2883 | initialY = getY(); |
nothing calls this directly
no test coverage detected