OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
AnyChildwindow.java
1 /*
2 ==============================================================================
3  Author: Zoltán Hrabovszki <zh@openkeyword.de>
4 
5  Copyright © 2012 - 2019 IT-Beratung Hrabovszki
6  www.OpenKeyWord.de
7 ==============================================================================
8 
9 This file is part of OpenKeyWord.
10 
11 OpenKeyWord is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15 
16 OpenKeyWord is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20 
21 You should have received a copy of the GNU General Public License
22 along with OpenKeyWord. If not, see <http://www.gnu.org/licenses/>.
23 
24 Diese Datei ist Teil von OpenKeyWord.
25 
26 OpenKeyWord ist Freie Software: Sie können es unter den Bedingungen
27 der GNU General Public License, wie von der Free Software Foundation,
28 Version 3 der Lizenz oder (nach Ihrer Wahl) jeder späteren
29 veröffentlichten Version, weiterverbreiten und/oder modifizieren.
30 
31 OpenKeyWord wird in der Hoffnung, dass es nützlich sein wird, aber
32 OHNE JEDE GEWÄHRLEISTUNG, bereitgestellt; sogar ohne die implizite
33 Gewährleistung der MARKTFÄHIGKEIT oder EIGNUNG FÜR EINEN BESTIMMTEN ZWECK.
34 Siehe die GNU General Public License für weitere Details.
35 
36 Sie sollten eine Kopie der GNU General Public License zusammen mit
37 OpenKeyWord erhalten haben. Wenn nicht, siehe <http://www.gnu.org/licenses/>.
38 */
39 package okw.gui;
40 
41 import java.io.IOException;
42 import java.util.ArrayList;
43 
44 import javax.xml.bind.JAXBException;
45 import javax.xml.parsers.ParserConfigurationException;
46 import javax.xml.xpath.XPathExpressionException;
47 
48 import org.xml.sax.SAXException;
49 
50 import okw.FrameObjectDictionary_Sngltn;
51 import okw.OKW;
52 import okw.OKW_TimeOut;
53 import okw.core.IOKW_FN;
54 import okw.exceptions.OKWFrameObjectMethodNotImplemented;
55 
56 
60 public abstract class AnyChildwindow extends AnyWinBase implements IGUIChildwindow, IOKW_FN
61 {
62 
82  public Boolean getExists()
83  {
84  // TODO: /todo Meldung in xml-Auslagern
85  throw new OKWFrameObjectMethodNotImplemented("The method getExists() is not defined for your GUI-Object. Please define first the methode!");
86  }
87 
88  public Boolean getHasFocus()
89  {
90  // TODO: /todo Meldung in xml-Auslagern
91  throw new OKWFrameObjectMethodNotImplemented("The method getHasFocus() is not defined for your GUI-Object. Please define first the methode!");
92  }
93 
94  public Boolean getIsActive()
95  {
96  // TODO: /todo Meldung in xml-Auslagern
97  throw new OKWFrameObjectMethodNotImplemented("The method getIsActive() is not defined for your GUI-Object. Please define first the methode!");
98  }
99 
100  public ArrayList<String> getCaption()
101  {
102  // TODO: /todo Meldung in xml-Auslagern
103  throw new OKWFrameObjectMethodNotImplemented("The method getCaption() is not defined for your GUI-Object. Please define first the methode!");
104  }
105 
106  public ArrayList<String> getTooltip()
107  {
108  // TODO: /todo Meldung in xml-Auslagern
109  throw new OKWFrameObjectMethodNotImplemented("The method getTooltip() is not defined for your GUI-Object. Please define first the methode!");
110  }
111 
112  public ArrayList<String> getPlaceholder()
113  {
114  // TODO: /todo Meldung in xml-Auslagern
115  throw new OKWFrameObjectMethodNotImplemented("The method getPlaceholder() is not defined for your GUI-Object. Please define first the methode!");
116  }
117 
118  public ArrayList<String> getLabel()
119  {
120  // TODO: /todo Meldung in xml-Auslagern
121  throw new OKWFrameObjectMethodNotImplemented("The method getLabel() is not defined for your GUI-Object. Please define first the methode!");
122  }
123 
124  public Integer getMaxLength()
125  {
126  // TODO: /todo Meldung in xml-Auslagern
127  throw new OKWFrameObjectMethodNotImplemented("The method getMaxLength() is not defined for your GUI-Object. Please define first the methode!");
128  }
129 
130  public Integer getMinLength()
131  {
132  // TODO: /todo Meldung in xml-Auslagern
133  throw new OKWFrameObjectMethodNotImplemented("The method getMinLength() is not defined for your GUI-Object. Please define first the methode!");
134  }
135 
136 
137  public ArrayList<String> getValue()
138  {
139  // TODO: /todo Meldung in xml-Auslagern
140  throw new OKWFrameObjectMethodNotImplemented("The method getValue() is not defined for your GUI-Object. Please define first the methode!");
141  }
142 
143  public void ClickOn( )
144  {
145  // TODO: /todo Meldung in xml-Auslagern
146  throw new OKWFrameObjectMethodNotImplemented("The method ClickOn() is not defined for your GUI-Object. Please define first the methode!");
147  }
148 
149  public void DoubleClickOn( )
150  {
151  // TODO: /todo Meldung in xml-Auslagern
152  throw new OKWFrameObjectMethodNotImplemented("The method 'public void DoubleClickOn( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
153  }
154 
155  public ArrayList<String> LogCaption( )
156  {
157  // TODO: /todo Meldung in xml-Auslagern
158  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> LogCaption( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
159  }
160 
161  public boolean LogExists( )
162  {
163  // TODO: /todo Meldung in xml-Auslagern
164  throw new OKWFrameObjectMethodNotImplemented("The method 'public boolean LogExists( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
165  }
166 
167  public boolean LogHasFocus( )
168  {
169  // TODO: /todo Meldung in xml-Auslagern
170  throw new OKWFrameObjectMethodNotImplemented("The method 'public boolean LogHasFocus( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
171  }
172 
173  public boolean LogIsActive( )
174  {
175  // TODO: /todo Meldung in xml-Auslagern
176  throw new OKWFrameObjectMethodNotImplemented("The method 'public boolean LogIsActive( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
177  }
178 
179  public ArrayList<String> LogLabel( )
180  {
181  // TODO: /todo Meldung in xml-Auslagern
182  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> LogLabel( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
183  }
184 
185  public ArrayList<String> LogPlaceholder( )
186  {
187  // TODO: /todo Meldung in xml-Auslagern
188  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> LogPlace( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
189  }
190 
191  public ArrayList<String> LogSelected( )
192  {
193  // TODO: /todo Meldung in xml-Auslagern
194  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> LogSelected( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
195  }
196 
197  public ArrayList<String> LogTablecellValue( String COL, String ROW )
198  {
199  // TODO: /todo Meldung in xml-Auslagern
200  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> ( String COL, String ROW ) throws Exception' throws Exception' is not defined for your GUI-Object. Please define first the methode!");
201  }
202 
203  public ArrayList<String> LogTooltip( )
204 {
205  // TODO: /todo Meldung in xml-Auslagern
206  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> LogTooltip( ) throws Exception' throws Exception' is not defined for your GUI-Object. Please define first the methode!");
207 }
208 
209 public ArrayList<String> LogValue( )
210 {
211  // TODO: /todo Meldung in xml-Auslagern
212  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> LogValue( ) throws Exception' throws Exception' is not defined for your GUI-Object. Please define first the methode!");
213 }
214 
215 public ArrayList<String> MemorizeCaption( )
216  {
217  // TODO: /todo Meldung in xml-Auslagern
218  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> MemorizeCaption( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
219  }
220 
221  public boolean MemorizeExists( )
222  {
223  // TODO: /todo Meldung in xml-Auslagern
224  throw new OKWFrameObjectMethodNotImplemented("The method 'public boolean MemorizeExists( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
225  }
226 
227  public boolean MemorizeHasFocus( )
228  {
229  // TODO: /todo Meldung in xml-Auslagern
230  throw new OKWFrameObjectMethodNotImplemented("The method 'public boolean MemorizeHasFocus( ) throws Exception' throws Exception' is not defined for your GUI-Object. Please define first the methode!");
231  }
232 
233  public boolean MemorizeIsActive( )
234  {
235  // TODO: /todo Meldung in xml-Auslagern
236  throw new OKWFrameObjectMethodNotImplemented("The method 'public boolean MemorizeIsActive( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
237  }
238 
239  public ArrayList<String> MemorizeLabel( )
240  {
241  // TODO: /todo Meldung in xml-Auslagern
242  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> MemorizeLabel( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
243  }
244 
245  public ArrayList<String> MemorizePlaceholder( )
246  {
247  // TODO: /todo Meldung in xml-Auslagern
248  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> MemorizePlaceholder( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
249  }
250 
251  public ArrayList<String> MemorizeSelectedValue( )
252  {
253  // TODO: /todo Meldung in xml-Auslagern
254  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> MemorizeSelectedValue( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
255  }
256 
257  public ArrayList<String> MemorizeTablecellValue( String COL, String ROW )
258  {
259  // TODO: /todo Meldung in xml-Auslagern
260  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> MemorizeTablecellValue( String COL, String ROW ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
261  }
262 
263  public ArrayList<String> MemorizeTooltip( )
264  {
265  // TODO: /todo Meldung in xml-Auslagern
266  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> MemorizeTooltip( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
267  }
268 
269  public ArrayList<String> MemorizeValue( )
270  {
271  // TODO: /todo Meldung in xml-Auslagern
272  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> MemorizeValue( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
273  }
274 
275  public void Select( ArrayList<String> fpLsParameter )
276  {
277  // TODO: /todo Meldung in xml-Auslagern
278  throw new OKWFrameObjectMethodNotImplemented("The method Select() is not defined for your GUI-Object. Please define first the methode!");
279  }
280 
281  public void SelectMenu( ) throws Exception
282  {
283  // TODO: /todo Meldung in xml-Auslagern
284  throw new OKWFrameObjectMethodNotImplemented("The method SelectMenu() is not defined for your GUI-Object. Please define first the methode!");
285  }
286 
287  public void SelectMenu( ArrayList<String> Val )
288  {
289  // TODO: /todo Meldung in xml-Auslagern
290  throw new OKWFrameObjectMethodNotImplemented("The method SelectMenu() is not defined for your GUI-Object. Please define first the methode!");
291  }
292 
293  public void SelectTablecell( String COL, String ROW )
294  {
295  // TODO: /todo Meldung in xml-Auslagern
296  throw new OKWFrameObjectMethodNotImplemented("The method 'public void SelectTablecell( String COL, String ROW ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
297  }
298 
299  public void SetFocus( ) throws Exception
300  {
301  // TODO: /todo Meldung in xml-Auslagern
302  throw new OKWFrameObjectMethodNotImplemented("The method 'public void SetFocus( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
303  }
304 
305  public void SetValue(ArrayList<String> Val )
306  {
307  // TODO: /todo Meldung in xml-Auslagern
308  throw new OKWFrameObjectMethodNotImplemented("The method 'public void SetValue( ArrayList<String> Val ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
309  }
310 
311  public void TypeKey(ArrayList<String> Val )
312  {
313  // TODO: /todo Meldung in xml-Auslagern
314  throw new OKWFrameObjectMethodNotImplemented("The method 'public void TypeKey( ArrayList<String> Val ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
315  }
316 
317  public void TypeKeyTablecell( String COL, String ROW, ArrayList<String> Val )
318  {
319  // TODO: /todo Meldung in xml-Auslagern
320  throw new OKWFrameObjectMethodNotImplemented("The method 'public void TypeKeyTablecell( String COL, String ROW, ArrayList<String> Val ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
321  }
322 
323  public ArrayList<String> VerifyLabel( )
324  {
325  // TODO: /todo Meldung in xml-Auslagern
326  throw new OKWFrameObjectMethodNotImplemented("The method 'public void VerifyLabel( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
327  }
328 
329  public ArrayList<String> VerifyBadge( )
330  {
331  // TODO: /todo Meldung in xml-Auslagern
332  throw new OKWFrameObjectMethodNotImplemented("The method 'public void VerifyBadge( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
333  }
334 
335  public ArrayList<String> VerifyBadgeWCM( )
336  {
337  // TODO: /todo Meldung in xml-Auslagern
338  throw new OKWFrameObjectMethodNotImplemented("The method 'public void VerifyBadgeWCM( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
339  }
340 
341  public ArrayList<String> VerifyBadgeREGX( )
342  {
343  // TODO: /todo Meldung in xml-Auslagern
344  throw new OKWFrameObjectMethodNotImplemented("The method 'public void VerifyBadgeREGX( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
345  }
346 
347  public ArrayList<String> VerifyPlaceholder( )
348  {
349  // TODO: /todo Meldung in xml-Auslagern
350  throw new OKWFrameObjectMethodNotImplemented("The method 'public void VerifyPlaceholder( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
351  }
352 
353  public Integer VerifyMaxLength( )
354  {
355  // TODO: /todo Meldung in xml-Auslagern
356  throw new OKWFrameObjectMethodNotImplemented("The method 'public void VerifyMaxLength( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
357  }
358 
359  public ArrayList<String> VerifyCaption( )
360  {
361  // TODO: /todo Meldung in xml-Auslagern
362  throw new OKWFrameObjectMethodNotImplemented("The method 'public void VerifyCaption( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
363  }
364 
365  public ArrayList<String> VerifyTooltip( )
366  {
367  // TODO: /todo Meldung in xml-Auslagern
368  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> VerifyTooltip( )' is not defined for your GUI-Object. Please define first the methode!");
369  }
370 
371  public ArrayList<String> VerifyValue( )
372  {
373  // TODO: /todo Meldung in xml-Auslagern
374  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> VerifyValue( )' is not defined for your GUI-Object. Please define first the methode!");
375  }
376 
377  public ArrayList<String> VerifyTablecellValue( String COL, String ROW )
378  {
379  // TODO: /todo Meldung in xml-Auslagern
380  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> VerifyTablecellValue( )' is not defined for your GUI-Object. Please define first the methode!");
381  }
382 
383  public ArrayList<String> VerifySelectedValue( )
384  {
385  // TODO: /todo Meldung in xml-Auslagern
386  throw new OKWFrameObjectMethodNotImplemented("The method 'public ArrayList<String> VerifySelectedValue( )' is not defined for your GUI-Object. Please define first the methode!");
387  }
388 
389  public Boolean VerifyExists( )
390  {
391  // TODO: /todo Meldung in xml-Auslagern
392  throw new OKWFrameObjectMethodNotImplemented("The method 'public Boolean VerifyExists( )' is not defined for your GUI-Object. Please define first the methode!");
393  }
394 
395  public Boolean VerifyIsActive()
396  {
397  // TODO: /todo Meldung in xml-Auslagern
398  throw new OKWFrameObjectMethodNotImplemented("The method 'public Boolean VerifyIsActive()' is not defined for your GUI-Object. Please define first the methode!");
399  }
400 
401  public Boolean VerifyHasFocus( )
402  {
403  // TODO: /todo Meldung in xml-Auslagern
404  throw new OKWFrameObjectMethodNotImplemented("The method 'public Boolean VerifyHasFocus( )' is not defined for your GUI-Object. Please define first the methode!");
405  }
406 
407  public Integer VerifyMinLength( )
408  {
409  // TODO: /todo Meldung in xml-Auslagern
410  throw new OKWFrameObjectMethodNotImplemented("The method 'public void VerifyMinLength( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
411  }
412 
413  public ArrayList<String> VerifyErrorMSG( )
414  {
415  // TODO: /todo Meldung in xml-Auslagern
416  throw new OKWFrameObjectMethodNotImplemented("The method 'public void VerifyErrorMSG( ) throws Exception' is not defined for your GUI-Object. Please define first the methode!");
417  }
418 
423  public AnyChildwindow( )
424  {
425  super();
426  }
427 
428 
429  public AnyChildwindow( String fpsLocator, OKWLocatorBase... fpLocators )
430  {
431  //this.setLocator( fpsLocator, fpLocators );
432  super (fpsLocator, fpLocators );
433  }
434 
435 
453  public Boolean WaitForMe()
454  {
455  // Variables
456  Boolean lvbReturn = false;
457  Integer Count = 0;
458 
459  try
460  {
461  OKW myOKW = FrameObjectDictionary_Sngltn.getInstance().getOKW( this.getKN() );
462 
463  // TimeOut-Werte Ermitteln
464  OKW_TimeOut timeout = new OKW_TimeOut( myOKW.WaitForMe_TO(), myOKW.WaitForMe_PT() );
465 
466  Count = 0;
467 
468  while ( Count <= timeout.getMaxCount() )
469  {
470  if ( this.getExists() )
471  {
472  lvbReturn = true;
473  break;
474  }
475  else
476  {
477  Thread.sleep( timeout.getPT() );
478  }
479  Count++;
480  }
481  }
482  catch (Exception e)
483  {
484  // TODO: handle exception
485  throw new RuntimeException(e);
486  }
487 
488  return lvbReturn;
489  }
490 
491 }
okw.gui.OKWLocatorBase
Definition: OKWLocatorBase.java:3
okw.FrameObjectDictionary_Sngltn
Verwaltet zentral die Frame-Klassen: Instanziert Frame-Klassen zu Frame-Objekten und liefert die Refe...
Definition: FrameObjectDictionary_Sngltn.java:73
okw.FrameObjectDictionary_Sngltn.getOKW
OKW getOKW(String fpKN)
Holt für einen GUI-Object die angehängte Annotation.
Definition: FrameObjectDictionary_Sngltn.java:829
okw.gui.AnyWinBase.getKN
String getKN()
Setzten des Objekt KN.
Definition: AnyWinBase.java:523
okw.OKW.WaitForMe_PT
int WaitForMe_PT() default 1000
Polling Time in [ms] für das aktuelle Object.
okw.gui.AnyWinBase
Description of AnyWin.
Definition: AnyWinBase.java:48
okw.core.IOKW_FN
Definition: IOKW_FN.java:3
okw.OKW.WaitForMe_TO
int WaitForMe_TO() default 30
TimeOut in Sekunden [s] für das erscheinen des aktuellen Objektes.
okw.exceptions.OKWFrameObjectMethodNotImplemented
Die Ausnahme OKWFrameObjectMethodNotImplemented wird ausgelöst, wenn im Frame Objekt eine gegebene Me...
Definition: OKWFrameObjectMethodNotImplemented.java:65
okw.gui.AnyChildwindow
Definition: AnyChildwindow.java:60
okw.gui.AnyChildwindow.getExists
Boolean getExists()
Prüft die Existenz des aktuellen Objektes.
Definition: AnyChildwindow.java:82
okw.gui.AnyChildwindow.AnyChildwindow
AnyChildwindow()
Wir benötigt damit in den abgeleitetetn Klassen 'Implicit super constructor AnyChildwindow() is undef...
Definition: AnyChildwindow.java:423
okw.gui.IGUIChildwindow
Definition: IGUIChildwindow.java:5
okw.OKW_TimeOut.getPT
Integer getPT()
Wartezeit zwischen zwei Pollings in [ms].
Definition: OKW_TimeOut.java:18
okw.OKW
Annotations-Klasses für die Zuordnung von.
Definition: OKW.java:38
okw.gui.AnyChildwindow.WaitForMe
Boolean WaitForMe()
Methode wartet auf die Existenz des aktuellen Objectes.
Definition: AnyChildwindow.java:453
okw.OKW_TimeOut.getMaxCount
Integer getMaxCount()
Anzahl der berechnetten Zyklen.
Definition: OKW_TimeOut.java:46
okw.OKW_TimeOut
Definition: OKW_TimeOut.java:3