OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
SeMAXIMIZE.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 
40 package okw.gui.adapter.selenium.webdriver;
41 
42 import java.util.ArrayList;
43 
44 import okw.exceptions.OKWFrameObjectMethodNotImplemented;
45 import okw.gui.adapter.selenium.SeAnyChildWindow;
46 
66  public class SeMAXIMIZE extends SeAnyChildWindow
67  {
68 
69  public SeMAXIMIZE()
70  {
71  super();
72  }
73 
83  public ArrayList<String> getCaption()
84  {
85  ArrayList<String> lvLsReturn = new ArrayList<String>();
86 
87  try
88  {
89  this.LogFunctionStartDebug( "GetCaption" );
90 
91  // TODO: SeURL.GetTooltip: Ausnahme-Meldung auslagern
92  throw new OKWFrameObjectMethodNotImplemented("\"Caption\" not supported by SeMAXIMIZE-class!");
93  }
94  finally
95  {
96  this.LogFunctionEndDebug( lvLsReturn );
97  }
98  }
99 
115  public Boolean getExists()
116  {
117  Boolean lvbReturn = true;
118 
119  try
120  {
121  this.LogFunctionStartDebug( "getExists" );
122  lvbReturn = true;
123  }
124  finally
125  {
126  this.LogFunctionEndDebug( lvbReturn );
127  }
128  return lvbReturn;
129  }
130 
141  public Boolean getIsActive()
142  {
143  Boolean lvbReturn = true;
144 
145  this.LogFunctionStartDebug( "getIsActive" );
146  this.LogPrintDebug( "Allways true" );
147  this.LogFunctionEndDebug( lvbReturn );
148 
149  return lvbReturn;
150  }
151 
159  public Boolean getHasFocus()
160  {
161  Boolean lvbReturn = false;
162 
163  try
164  {
165  this.LogFunctionStartDebug( "getHasFocus" );
166 
167  // TODO: SeURL.GetTooltip: Ausnahme-Meldung auslagern
168  throw new OKWFrameObjectMethodNotImplemented("\"HasFocus\" not supported by SeMAXIMIZE-class!");
169  }
170  finally
171  {
172  this.LogFunctionEndDebug( lvbReturn );
173  }
174 
175  }
176 
187  public ArrayList<String> getLabel()
188  {
189  ArrayList<String> lvLsReturn = new ArrayList<String>();
190 
191  try
192  {
193  this.LogFunctionStartDebug( "getLabel" );
194 
195  // TODO: SeURL.GetTooltip: Ausnahme-Meldung auslagern
196  throw new OKWFrameObjectMethodNotImplemented("GetTooltip not supported by SeURL-class!");
197  }
198  finally
199  {
200  this.LogFunctionEndDebug( lvLsReturn );
201  }
202  }
203 
204 
216  public ArrayList<String> getTooltip()
217  {
218  ArrayList<String> lvLsReturn = new ArrayList<String>();
219 
220  this.LogFunctionStartDebug("GetTooltip");
221 
222  try
223  {
224  // TODO: SeURL.GetTooltip: Ausnahme-Meldung auslagern
225  throw new OKWFrameObjectMethodNotImplemented("GetTooltip not supported by SeURL-class!");
226  }
227  finally
228  {
229  this.LogFunctionEndDebug(lvLsReturn);
230  }
231  // return lvLsReturn;
232  }
233 
244  public ArrayList<String> getValue()
245  {
246  ArrayList<String> lvLsReturn = new ArrayList<String>();
247 
248  this.LogFunctionStartDebug("getValue");
249 
250  try
251  {
252  // TODO: SeMAXIMIZE.SetFocus: Ausnahme-Meldung auslagern
253  throw new OKWFrameObjectMethodNotImplemented("\"*Value\" Keyword are not supported by SeMAXIMIZE-class!");
254  }
255  finally
256  {
257  this.LogFunctionEndDebug(lvLsReturn);
258  }
259 
260  }
261 
262 
271  public void ClickOn()
272  {
273  try
274  {
275  this.LogFunctionStartDebug("ClickOn");
276 
277  /*java.awt.Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
278 
279  this.ResOpenList( "Screen Dimension:" );
280  this.LogPrint( screenSize.toString() );
281  this.ResCloseList();
282 
283  Dimension myDimension = new Dimension((int)screenSize.getWidth(), (int)screenSize.getHeight());
284 
285  // Set dimension to
286  SeDriver.getInstance().getDriver().manage().window().setSize(myDimension);
287 
288  Point myPoint = new Point(0,0);
289 
290  // Set dimension to
291  SeDriver.getInstance().getDriver().manage().window().setPosition( myPoint );
292 */
293 
294  SeDriver.getInstance().getDriver().manage().window().maximize();
295  }
296  finally
297  {
298  this.LogFunctionEndDebug();
299  }
300  }
301 
302 
313  public void SetFocus()
314  {
315  this.LogFunctionStartDebug("SetFocus");
316 
317  try
318  {
319  // TODO: SeMAXIMIZE.SetFocus: Ausnahme-Meldung auslagern
320  throw new OKWFrameObjectMethodNotImplemented("\"SetFocus\" not supported by SeMAXIMIZE-class!");
321  }
322  finally
323  {
324  this.LogFunctionEndDebug();
325  }
326  }
327 
338  public void SetValue(ArrayList<String> fps_Values)
339  {
340  this.LogFunctionStartDebug("SetValue", "fps_Values", fps_Values.get(0));
341 
342  try
343  {
344  // TODO: SeMAXIMIZE.SetFocus: Ausnahme-Meldung auslagern
345  throw new OKWFrameObjectMethodNotImplemented("\"SetValue\" not supported by SeMAXIMIZE-class!");
346  }
347  finally
348  {
349  this.LogFunctionEndDebug();
350  }
351  }
352 
353 
366  public void TypeKey(ArrayList<String> fps_Values)
367  {
368  this.LogFunctionStartDebug("TypeKey", "fps_Values", fps_Values.get(0));
369 
370  try
371  {
372  throw new OKWFrameObjectMethodNotImplemented("\"TypeKey\" not supported by SeMAXIMIZE-class!");
373  }
374  finally
375  {
376  this.LogFunctionEndDebug();
377  }
378  }
379 }
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.SetFocus
void SetFocus()
Setzt den Focus in das aktuelle URL-TextFeld.
Definition: SeMAXIMIZE.java:313
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE
Definition: SeMAXIMIZE.java:66
okw.gui.adapter.selenium.webdriver.SeDriver
Pattern Singelton.
Definition: SeDriver.java:60
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.TypeKey
void TypeKey(ArrayList< String > fps_Values)
Setzt den Wert der URL im aktiven Browser/BrowserChild und navigiert zur gegebenen Seite.
Definition: SeMAXIMIZE.java:366
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.getHasFocus
Boolean getHasFocus()
Methode wird nicht untertütz, Methode liefert den aktuellen Zustand Wert des Focus.
Definition: SeMAXIMIZE.java:159
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.SetValue
void SetValue(ArrayList< String > fps_Values)
Setzt den Wert der URL im aktiven Browser und navigiert zur gegebene Seite.
Definition: SeMAXIMIZE.java:338
okw.gui.AnyWinBase.LogFunctionEndDebug
void LogFunctionEndDebug()
Methode ruft die Methode Logger.Instance.LogFunctionEndDebug() auf.
Definition: AnyWinBase.java:298
okw.gui.adapter.selenium.SeAnyChildWindow
Definition: SeAnyChildWindow.java:74
okw.exceptions.OKWFrameObjectMethodNotImplemented
Die Ausnahme OKWFrameObjectMethodNotImplemented wird ausgelöst, wenn im Frame Objekt eine gegebene Me...
Definition: OKWFrameObjectMethodNotImplemented.java:65
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.getValue
ArrayList< String > getValue()
Alle Value Schlüsselwörter werden nicht unterstützt.
Definition: SeMAXIMIZE.java:244
okw.gui.adapter.selenium.webdriver.SeDriver.getInstance
static SeDriver getInstance()
Gibt die Instance für die einzige Instanz dieser Klasse zurück.
Definition: SeDriver.java:102
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.getExists
Boolean getExists()
Prüft die Existenz des aktuellen Objektes.
Definition: SeMAXIMIZE.java:115
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.getIsActive
Boolean getIsActive()
Ermittelt, ob das aktuellen Objekt aktiv ist.
Definition: SeMAXIMIZE.java:141
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.getCaption
ArrayList< String > getCaption()
Ermittelt den textuellen Inhalt der Überschrift eines HTML-Tags anhand des Attributee "textContent".
Definition: SeMAXIMIZE.java:83
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.getLabel
ArrayList< String > getLabel()
Ermittelt den textuellen Inhalt des Labels.
Definition: SeMAXIMIZE.java:187
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.ClickOn
void ClickOn()
Klickt auf das aktuelle Objekt.
Definition: SeMAXIMIZE.java:271
okw.gui.adapter.selenium.webdriver.SeMAXIMIZE.getTooltip
ArrayList< String > getTooltip()
Liest den aktuellen Tooltip-Wert der URL aus.
Definition: SeMAXIMIZE.java:216
okw.gui.AnyWinBase.LogFunctionStartDebug
void LogFunctionStartDebug(String fpsMethodName)
Methode ruft die Methode Logger.Instance.LogFunctionStartDebug(fps_FunctionName), und erweitert den g...
Definition: AnyWinBase.java:212